Laravel service provider is not found Laravel service provider is not found laravel laravel

Laravel service provider is not found


There were some cases with registration problem, cache issues, etc. Try one of these solutions:

  • register your provider (in main composer.json, then in config/app.php [provider & alias] ), then run composer dump-autoload
  • try php artisan config:cache or delete everything in bootstrap/cache/
  • make sure you have initiated your package : go to the folder, then composer init


After adding the dependency in composer.json, you have to install the package before adding the class in service provider, using the below command:

composer update

You can easily check if the physical file(NotificationServiceProvider) exists in your project. If it does not exists, you need to install the package using above command(don't forget to comment out the service provider declaration in app.php and re-enable after installing the package.)