[英]Laravel Uncaught exception 'ReflectionException
Im getting an error when trying to launch a Laravel App .尝试启动 Laravel 应用程序时出现错误。
Fatal error: Uncaught exception 'ReflectionException' with message 'Class log does not exist' in C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Container\Container.php:735
I have checked the .env file for spaces and found none.我检查了 .env 文件中的空格,但没有找到。 I also replaced each file in the config folder in a attempt to find out which one would throw the error.我还替换了 config 文件夹中的每个文件,试图找出哪个文件会引发错误。 I also tried doing a dump just the mentioned line我也尝试只在提到的行中进行转储
dump($concrete, debug_backtrace());
I have also tried running composer dump-autoload and composer dump-autoload -o which promted me to put the composer.json file into the config directory Then when ran again threw the error stating "Could not scan for classes inside database which does not appear to be a file nor a folder".我也试过运行 composer dump-autoload 和 composer dump-autoload -o 这促使我将 composer.json 文件放入配置目录然后再次运行时抛出错误,指出“无法扫描未出现的数据库中的类成为文件或文件夹”。
How can a isolate and sort this issue out ?如何隔离和解决这个问题?
do:做:
$ composer dump-autoload -o
and try again然后再试一次
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.