3
votes

I created this provider:

php artisan make:provider ShortcodesServiceProvider

I then had to delete the file, but am now getting

FatalThrowableError in C:\xampp\htdocs\listagram\vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php line 146:

Class 'App\Providers\ShortcodesServiceProvider' not found

How do I reset serviceproviders after manually deleting the provider file I created?

1
remove your 'App\Providers\ShortcodesServiceProvider entry from config/app.php - Cerlin
i.imgur.com/8tVYZ1J.png it is removed, still same error, also did run composer dump-autoload and same error remains - niko craft
try php artisan clear-compiled - Cerlin
it was config cache, had to delete 2 cache files i the \bootstrap\cache - niko craft

1 Answers

7
votes

You should delete bootstrap/cache/services.php file manually and run composer dumpauto command to fix this.