App Service Provider

Laravel service providers are the connection points between your app and Laravel.

{info} If you are not familiar with its concept. Check out the full Laravel Service Provider documentation to get started.

App Service Provider

Create Laravel service provider file and keep it in your app’s /src folder.

                    ├── src
                    │   ├── AppServiceProvider.php

App Service Provider Auto Discovery

You need to define the provider in the extra section of your app's composer.json file.

"extra": {
    "laravel": {
        "providers": [

Generating new app from the developer app will add service provider auto discovery to your app’s composer.json automatically.