What is service providers in Laravel?
Service providers is a central place of all entire Laravel application. A service provider is a powerful tool for managing class dependencies and performing dependency injection. Service provider tells Laravel to bind various components into the laravel's service container.
You can use
php artisan make: provider ClientsServiceProvider artisan command to generate a service provider :
It has below listed functions in its file.
- register function
- boot function