简体   繁体   English

Symfony \ Component \ Debug \ Exception \ FatalThrowableError类'Buno \ Readr \ ReadrServiceProvider'未找到

[英]Symfony\Component\Debug\Exception\FatalThrowableError Class 'Buno\Readr\ReadrServiceProvider' not found

Hello guys please do not vote down quickly, I have read other post related to this but I do not seem to be getting any results. 大家好,请不要快速投票,我已经阅读了与此相关的其他帖子,但我似乎没有得到任何结果。 I am getting this error above, I have ran composer dump autoload, it still tells me class not found when I try to run php artisan serve 我上面得到这个错误,我已经运行了composer dump autoload,它仍然告诉我当我尝试运行php artisan服务时找不到类

In ProviderRepository.php line 208:

 Class 'Buno\Readr\ReadrServiceProvider' not found


PS C:\Users\wilesx\Desktop\rauxmac\blog>

here's my code in in config/app.php 这是我在config/app.php代码

Buno\Readr\ReadrServiceProvider::class

here's where I added composer and do dumpautoload 这里是我添加作曲家和dumpautoload的地方

"autoload-dev": {
    "psr-4": {
        "Tests\\": "tests/",
        "Buno\\Readr\\": "pkgs/readr/src/"
    }
},

PS C:\Users\wilesx\Desktop\rauxmac\blog\pkgs\readr> composer dump-autoload
Generating autoload files
PS C:\Users\wilesx\Desktop\rauxmac\blog\pkgs\readr>

I have once battled with this, your provider will most likely not be found if, it has not been added to composer autoload and dumped properly, or probably doesn't even exists. 我曾经与此作斗争,如果你的提供者没有被添加到composer autoload并正确地转储,或者甚至可能不存在,那么很可能找不到你的提供者。 Looking at your code you seem to be running composer dumpautoload in a wrong directory, make sure to run composer dumpautoload in Laravel root directory that is if you have added your namespace to composer.json file correctly too. 查看您的代码,您似乎在错误的目录中运行composer dumpautoload,请确保在Laravel根目录中运行composer dumpautoload,如果您已正确地将您的命名空间添加到composer.json文件中。

for clarity run composer dump-autoload in this directory -- C:\\Users\\wilesx\\Desktop\\rauxmac\\blog\\ 为清楚起见,在此目录中运行composer dump-autoload - C:\\Users\\wilesx\\Desktop\\rauxmac\\blog\\

lets see the outcome. 让我们看看结果。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到Laravel Forge返回[Symfony \\ Component \\ Debug \\ Exception \\ FatalThrowableError]类 - Laravel Forge returning [Symfony\Component\Debug\Exception\FatalThrowableError] class not found 找不到Symfony \\ Component \\ Debug \\ Exception \\ FatalThrowableError类'\\ App \\ Admin' - Symfony\Component\Debug\Exception\FatalThrowableError Class '\App\Admin' not found “Symfony\\Component\\Debug\\Exception\\FatalThrowableError” - The "Symfony\Component\Debug\Exception\FatalThrowableError" Symfony \\ Component \\ Debug \\ Exception \\ FatalThrowableError(E_ERROR)类'APP \\ Mail \\ Reverify'未找到 - Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Class 'APP\Mail\Reverify' not found 在 Laravel 上找不到类 - Symfony \\ Component \\ Debug \\ Exception \\ FatalThrowableError (E_ERROR) - Class not found on Laravel - Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Laravel 5.6 Symfony \\ Component \\ Debug \\ Exception \\ FatalThrowableError (E_ERROR) Class '\\App\\Utilisateurs' 未找到 - Laravel 5.6 Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Class '\App\Utilisateurs' not found Symfony \\ Component \\ Debug \\ Exception \\ FatalThrowableError(E_ERROR)找不到类“购物车” - Symfony\Component\Debug\Exception\FatalThrowableError (E_ERROR) Class 'Cart' not found 未捕获的 Symfony\Component\Debug\Exception\FatalThrowableError: - Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Symfony\Component\Debug\Exception\FatalThrowableError:语法错误,文件意外结束 - Symfony\Component\Debug\Exception\FatalThrowableError : syntax error, unexpected end of file Symfony\\Component\\Debug\\Exception\\FatalThrowableError:参数 1 传递给 Tymon\\JWTAuth\\JWTGuard::login() - Symfony\Component\Debug\Exception\FatalThrowableError: Argument 1 passed to Tymon\JWTAuth\JWTGuard::login()
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM