2017-07-02 138 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 –

相關問題