PURPOSE
- Service providers are used you need to set some things up once when the application starts, and those thi,gs can then be used later by a service container.
USAGE
php artisan make:provider <xyz>ServiceProvider Description: Create a new service provider class Usage: make:provider <name> Arguments: name The name of the class Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question --env[=ENV] The environment the command should run under -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
OUTPUT
Output will be in app/Http/Providers:app/Http/Providers/xyzServiceProvider.php
Reference: https://laravel.com/docs/7.x/providers