Laravel: Base table or view not found: 1146 Table 'database.pages doesn't exist

后端 未结 2 354
青春惊慌失措
青春惊慌失措 2021-01-17 15:26

I\'m working on a CMS and I have a little problem with my migrations. I added a new migration file and I wanted to add that one. That didn\'t work so I ran this bit:

2条回答
  •  花落未央
    2021-01-17 16:23

    You can use this to dictate when your app is running from the console. I believe this issue only occurs when you run a command

    if( !App::runningInConsole() ){
      //allow laravel-menu to run
    }
    

    This way you will prevent data load from your non-existent table

提交回复
热议问题