Support the ongoing development of Laravel.io →
posted 10 years ago
Configuration
Last updated 2 years ago.
0

The only thing you need to change is config/database.php. Nothing else. That is if your htaccess is correct.
I uploaded to byethost hosting and all worked. Please watch some of the free laracast videos.

0

Yes, but what if I have many environments? I would have many database.php file - one in config directory, the other one in config/local and the other in config/develop. It is working without a problem in Laravel 4.2 but it seems in Laravel 5 it doesn't work as it should. The whole application is working as it should, so htaccess is not issue here I believe.

I also posted more details on SO: http://stackoverflow.com/questions/27343021/laravel-5-configuration-environments-and-overriding

Last updated 10 years ago.
0

Remember, L5 is still in dev. Let the laravel team know about this. But it may be fixed anyway. Mention this on live chat also.

0

Laravel 5 use the ".env" file to configure the environment variables, you should set the values of your database there

0

so is this issue solved now?

0

micz123 said:

so is this issue solved now?

As mentioned above, L5 uses .env files for environment specific configuration.

http://laravel.com/docs/5.0/configuration#environment-configuration

https://github.com/vlucas/phpdotenv

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mnabialek mnabialek Joined 19 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.