laravel-imap
laravel-imap copied to clipboard
Undefined index: host
Installed it as in the instructions, but I keep getting this error:
ErrorException in Client.php line 81: Undefined index: host
It looks like the config/imap.php is ignored completely, any ideas?
same problem !
i used this to solve it in my case:
$config = config('imap');
$client = new Client($config['gmail']);
I tried this.
$config = config('imap'); $client = new Client($config['gmail']);
But got another error: Illegal string offset 'host'
So I changed it to this, and it seems to work. $config = config('imap'); $client = new Client($config['accounts']['default']);