laravel-imap
laravel-imap copied to clipboard
from and subject not correctly documented
Describe the bug A clear and concise description of what the bug is.
The Documentation is not up to date.
Function ´getFrom()and
getSubject()` do not work as displayed in the documentations.
To Reproduce Steps to reproduce the behavior:
Connect to an IMAP server and Read messages via the examples/message_table.blade.php.
Line 33 wil throw an error. Correct to getSubject()->toArray()[0]
for a working example.
Line 34 will throw an error. Correct to getFrom()->toArray()[0]->mail
for a working example.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop / Server (please complete the following information):
- OS: Ubuntu Server
- PHP: 7.4
- Version 20.04 LTS
Additional context Add any other context about the problem here.
You can fix it as well with getSubject()->first()
and getFrom()->first()->mail
.