Focus On Service Providers
Service providers are truly the key to bootstrapping a Laravel application. The application instance is created, the service providers are registered, and the request is handed to the bootstrapped application. It's really that simple!
Having a firm grasp of how a Laravel application is built and
bootstrapped via service providers is very valuable. Your application's
default service providers are stored in the app/Providers
directory.
By default, the AppServiceProvider
is fairly empty. This provider is a great place to add your
application's own bootstrapping and service container bindings. For
large applications, you may wish to create several service providers,
each with a more granular type of bootstrapping.