A
A
Anatoly2015-03-21 01:38:23
Laravel
Anatoly, 2015-03-21 01:38:23

Migrating from laravel 4 to laravel 5 how to deal with settings?

Good afternoon, I'm not strong in Laravel, and I worked with version 4, everything is simple with the settings, when creating a project, 3 daddies are created: locale, testing and live. When switching to version 5, all this is not there, and they are forcibly forced to switch to .env
Actually, the question is: do I need to use sqlite3 locally and when testing mysql, how not to be with the settings?
I say this right now:

'default' => getenv('DEFAULT_SQL_ENGINE') ? getenv('DEFAULT_SQL_ENGINE') : 'mysql' ;

pure shit, and I don’t want to do this, in version 4 everything was gorgeous, all configs in the right folder, overriding missing configs, etc.
How to use configs in laravel5 correctly? How to use the complex division of the config by working environments?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question