Laravel 5-PHP Artisan语法错误 [英] Laravel 5 - Php artisan syntax error

查看:140
本文介绍了Laravel 5-PHP Artisan语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Laravel 5开发一个应用程序,而工匠突然停止工作了!

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:

      [Symfony\Component\Debug\Exception\FatalErrorException]
      syntax error, unexpected ',', expecting variable (T_VARIABLE)

我试图通过作曲家进行更新,但是当工匠试图清除并整理时

I tried to update via composer but when the artisan tries to clear-complie

Command: composer update

> php artisan clear-compiled

  [Symfony\Component\Debug\Exception\FatalErrorException]
  syntax error, unexpected ',', expecting variable (T_VARIABLE)

以前有没有人犯过这个错误?

Has anyone ever had this error before?

我的PHP版本是5.6.8

My Php version is 5.6.8

推荐答案

我发现了错误!

routes.php文件出现语法错误...

I had a syntax error on my routes.php file...

function($id,**name**,**value**)

忘记了$号,因此发现了意外的','.

Forgot the $ sign and thus it found a unexpected ','.

谢谢大家的帮助!

这篇关于Laravel 5-PHP Artisan语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆