Laravel Call to undefined function get()

今天遇到了一個問題,就是在命令行執行php artisan 命令一直報錯。報錯以下:php

php artisan clear-compiled

[Symfony\Component\Debug\Exception\FatalErrorException]  
Call to undefined function get()

我用composer update 不行。 而後參考一篇回答作修復也不行點我查看 最後想到了去看下 storage/logs/laravel.log 果真,在錯誤後面跟着一個具體的錯誤提示laravel

[2016-11-18 09:14:40] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined function get() in test/routes/web.php:71

找到具體的錯誤定位後,改正完就行了。web

相關文章
相關標籤/搜索