2016-09-14 103 views
0

有人可以幫我解決這個錯誤嗎?在Laravel 4.2移植過程中得到它Laravel 4.2遷移問題

{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Uncaught TypeError: Argument 1 passed to Illuminate\Exception\WhoopsDisplayer::display() must be an instance of Exception, instance of ParseError given, called in C:\Users\adejaremola\Desktop\UniServerZ\www\GoingFurther\bootstrap\compiled.php on line 9462 and defined in C:\Users\adejaremola\Desktop\UniServerZ\www\GoingFurther\bootstrap\compiled.php:9352\nStack trace:\n#0 C:\Users\adejaremola\Desktop\UniServerZ\www\GoingFurther\bootstrap\compiled.php(9462): Illuminate\Exception\WhoopsDisplayer->display(Object(ParseError))\n#1 C:\Users\adejaremola\Desktop\UniServerZ\www\GoingFurther\bootstrap\compiled.php(9414): Illuminate\Exception\Handler->displayException(Object(ParseError))\n#2 C:\Users\adejaremola\Desktop\UniServerZ\www\GoingFurther\bootstrap\compiled.php(9418): Illuminate\Exception\Handler->handleException(Object(ParseError))\n#3 [internal function]: Illuminate\Exception\Handler->handleUncaughtException(Object(ParseError))\n#4 {main}\n thrown","file":"C:\Users\adejaremola\Desktop\UniServerZ\www\GoingFurther\bootstrap\compiled.php","line":9352}}

回答

0

看起來你試圖從瀏覽器調用laravel的遷移。不幸的是它不會在這裏工作。

您應該從CLI在項目的根用命令來運行它:

$ php artisan migrate