我目前正在使用 Laravel 5 开发一个应用程序,突然 artisan 停止工作了!
我不能对它使用单个命令,它总是返回错误:
[Symfony\Component\Debug\Exception\FatalErrorException]
syntax error, unexpected ',', expecting variable (T_VARIABLE)
我尝试通过 composer 进行更新,但是当 artisan 尝试 clear-complie 时
Command: composer update
> php artisan clear-compiled
[Symfony\Component\Debug\Exception\FatalErrorException]
syntax error, unexpected ',', expecting variable (T_VARIABLE)
有没有人以前遇到过这个错误?
我的PHP版本是5.6.8
最佳答案
我发现了错误!
我的 routes.php 文件有语法错误...
function($id,**name**,**value**)
忘记了 $ 符号,因此它发现了一个意外的 ','。
谢谢大家的帮助!
关于php - Laravel 5 - Php artisan 语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32312693/