How do I run migrations for a specific environment in laravel

后端 未结 4 1194
忘了有多久
忘了有多久 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:38

    You need to specify the environment before the migrate command.

    artisan --env=local migrate
    

    Running artisan help shows you the format in which commands are to follow.

    artisan help
    
    Usage:
      [options] command [arguments]
    

提交回复
热议问题