I have a simple question, but I did not find an answer on the Internet. Perhaps my keywords are false.
So, I am developing an application in Laravel 4. And I need to sow the database with different values ββin accordance with the current active environment.
So, for example, if I am in a local environment, I want to have test data and so on. But when I am in the production environment, I want to have only an administrator.
Does Laravel have a built-in solution for this?
If not, how to check which environment is active in the app/seeds/DatabaseSeeder.php file. Therefore, I can name another seeder according to the environment.
source share