Laravel 4 or 5?
Laravel 4: Just at a quick glance it looks like your config file is in the wrong place, it should app/config/development/email.php
Laravel 5: It no longer supports cascading configs or subdirectories per environment you would need to configure it via environment variables.
Ooops sorry yes it is under
/app/config/
I'm using Laravel 4.2
By the way should I skip Laravel 4 and start studying 5 ?
Thanks
Are you using Homestead?
Chances are Laravel is not picking up your environment based on your hostname possibly.
What does this return when you place it in your route?
dd(App::environment());
thanks for replying dude. Any way when I call the codes below,
dd(App:environment());
It display this below
string(11) "development"
Well it is detecting your environment correctly which is good.
But i believe the file is called mail.php not email.php Give this a try:
Route::get('emaildriver', function()
{
dd(Config::get('mail.driver'));
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community