Laravel 5 - Php artisan syntax error

前端 未结 7 1650
清歌不尽
清歌不尽 2021-02-07 07:41

I am currently developing an app with Laravel 5 and suddenly the artisan stoped working!

I can\'t use a single command on it, it always return the error:



        
7条回答
  •  [愿得一人]
    2021-02-07 08:07

    I have received the same error in routes.php. I have given the wrong Route.

    I put Route::get('/admin' , AdminController@index); instead of Route::get('/admin' , 'AdminController@index');

    I forgot single quotes. Please check yours.

提交回复
热议问题