2017-07-02 135 views
0

我正在使用Lumen,但为什么PHP artisan命令不起作用。Php Symfony Component Debug Exception FatalThrowableError解析错误:语法错误,意外的',';

这里有我的命令,那些我跑:

~$: php artisan migrate:install 
Migration table created successfully. 
-$: php artisan make:migration --create=users create_users_table 
[Symfony\Component\Debug\Exception\FatalThrowableError]  Parse error: syntax error, unexpected ',' 
+1

显示您的迁移文件。必须额外,在代码 – Chintan7027

+0

,但artisan命令不工作 –

回答

1

在你的代码的问题是,由于这种变化 - Git Commit History

变化web.php路线回:

$app->get('/', function() use ($app) { 
    return $app->version(); 
}); 
+0

感谢您的帮帮我.. –

0

它必须是一个错字,可能在迁移文件。在这里或在git上显示你的代码。而像这样写PHP的工匠制作:迁移create_users_table --create =用户

+0

感谢您的评论,但它不工作too.Here是github上的mycode https://github.com/Naveen-Gupta/lumen.git –

相关问题