有人可以帮我解决这个错误吗?在Laravel 4.2迁移期间得到它
{“error”:{“type”:“Symfony \ Component \ Debug \ Exception \ FatalErrorException”,“message”:“Uncaught TypeError:传递给Illuminate \ Exception \ WhoopsDisplayer :: display()的参数1必须是异常的实例,给出的ParseError实例,在9462行的C:\ Users \ adejaremola \ Desktop \ UniServerZ \ www \ GoingFurther \ bootstrap \ compiled.php中调用,并在C:\ Users \ adejaremola \ Desktop \ UniServerZ \ www \中定义GoingFurther \ bootstrap \ compiled.php:9352 \ n堆栈跟踪:\ 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 [内部函数] :Illuminate \ Exception \ Handler->手leUncaughtException(Object(ParseError))\ n#4 {main} \ n thrown“,”file“:”C:\ Users \ adejaremola \ Desktop \ UniServerZ \ www \ GoingFurther \ bootstrap \ compiled.php“,”line“: 9352}}
答案 0 :(得分:0)
您似乎正试图从浏览器调用laravel的迁移。不幸的是,它不会在这里工作。
您应该使用项目根目录中的 CLI using命令运行它:
$ php artisan migrate