+ 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

9th Mar 2021, 8:25 AM
Praveena Thavarajah
Praveena Thavarajah - avatar
6 Answers
+ 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.
9th Mar 2021, 2:27 PM
Josh Greig
Josh Greig - avatar
0
But there is no config.php inside app/bootstrap/cache
9th Mar 2021, 2:46 PM
Praveena Thavarajah
Praveena Thavarajah - avatar
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
9th Mar 2021, 3:11 PM
Josh Greig
Josh Greig - avatar
0
I tried composer dump-autoload -o but still same error is there
9th Mar 2021, 3:17 PM
Praveena Thavarajah
Praveena Thavarajah - avatar
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.
9th Mar 2021, 5:20 PM
Josh Greig
Josh Greig - avatar
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.
14th Mar 2021, 7:43 AM
Praveena Thavarajah
Praveena Thavarajah - avatar