How do I run migrations for a specific environment in laravel

后端 未结 4 1195
忘了有多久
忘了有多久 2021-02-05 04:57

I\'m setting up a new app with laravel (Laravel 4), and having some issues setting up the database via migrations.

I made a migration file with:

artisan          


        
4条回答
  •  被撕碎了的回忆
    2021-02-05 05:59

    Resolved.

    Solution was simply to edit the local/database.php (or production/database.php etc), making sure that the migrations path variable is pointing to the location that migrate:make is creating the migration files, just change

    'application' => __DIR__.'/../database/migrations',
    

    to

    'application' => DIR.'/../../database/migrations',
    

提交回复
热议问题