为什么每次安装 Laravel 5 后都会输入命令
laravel new project-name
通常我会遇到问题
Crafting application...
Parse error: parse error, expecting `"identifier (T_STRING)"' or `"variable (T_VARIABLE)"' or `'{'' or `'$'' in /Applications/MAMP/htdocs/test/artisan on line 31
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
run-script [--dev] [--no-dev] [-l|--list] [script] [args1] ... [argsN]
然后,当我尝试使用命令php -S localhost:8888 -t public
打开服务器并在浏览器中打开它时,我总是在我的主页上看到此问题
Parse error: parse error, expecting `"identifier (T_STRING)"' or `"variable (T_VARIABLE)"' or `'{'' or `'$'' in /Applications/MAMP/htdocs/test/public/index.php on line 50
我怎么修理它?