zalazdi / laravel-imap

Laravel 5 IMAP client.
MIT License
48 stars 24 forks source link

Undefined index: host #19

Open hsleewis opened 7 years ago

hsleewis commented 7 years ago

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?

lamkasmourad commented 7 years ago

same problem ! i used this to solve it in my case:
$config = config('imap'); $client = new Client($config['gmail']);

yangfuzhang commented 7 years ago

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']);