今天遇到了一个问题,就是在命令行执行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