Laravel 5 - Php artisan syntax error

前端 未结 7 1648
清歌不尽
清歌不尽 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:04

    None of these solutions will always work.

    php artisan tinker --verbose will often not give you the stack trace which will show the source of the error.

    running in the browser will also not always give the error.

    The solution is simple : look in storage/logs/laravel.log there the full stack trace will show

    For ease of finding (if file is huge), open the file, delete all contents, run tinker and when come back only the specific error info will be there.

    Hope this helps someone else

提交回复
热议问题