+ 1
Can anyone please help me to solve this error in laravel?
PS C:\xampp\htdocs\sample> php artisan serve In ProviderRepository.php line 208: Class "Illuminate\Support\Facades\App\Providers\AppServiceProvider" not found
6 Antworten
+ 3
Try the following steps:
1. Run: composer dump-autoload -o
2. If the previous step didn't work, manually delete: bootstrap/cache/config.php
3. Run composer dumpautoload
The above steps are basically a summary of what I found reading the discussion of a very similar error messages at: https://laracasts.com/discuss/channels/laravel/in-providerrepositoryphp-line-208-class-not-found
I'm suggesting only the steps that people said fixed their problem so these few steps have the highest probability of working.
0
But there is no config.php inside app/bootstrap/cache
0
Praveena wrote, "But there is no config.php inside app/bootstrap/cache"
Response:
I wish you'd give more information if it doesn't work so this conversation moves faster.
My instructions were to try composer dump-autoload -o first. Did that not work for you?
If the dump-autoload didn't work and there is no config.php inside app/bootstrap/cache, try to run composer dumpautoload
0
I tried composer dump-autoload -o but still same error is there
0
Praveena wrote, "I tried composer dump-autoload -o but still same error is there"
Response:
If you did everything I said in the previous answer, comment on both. You mentioned only doing one thing when I said to do more.
0
Thank you so much for the support you gave Josh Greig .
I sorted the problem. It was due to drag and drop of certain files inside another by mistake.