Package Data | |
---|---|
Maintainer Username: | Synga |
Maintainer Contact: | packagist@synga.nl (Roy Pouls) |
Package Create Date: | 2016-01-11 |
Package Last Update: | 2016-05-11 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-09 15:05:09 |
Package Statistics | |
---|---|
Total Downloads: | 24 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 4 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Finds all service providers in your project and lets you add them easily to your app.php config file
Add (for the last time!) the service provider
Synga\ServiceProviderHelper\ServiceProviderHelperServiceProvider::class
to your app.php config file.
Add the following line to you composer.json file. Make sure it is the last entry in the post-update-cmd
"post-update-cmd": [
...
"Synga\\ServiceProviderHelper\\Command\\AddServiceProviderComposerCommand::addServiceProvider"
]
After you add the service provider to your app.php config file you need to run:
php artisan vendor:publish
From this moment, everytime you do a composer update this package checks if there are new service providers. When there
are new service providers it will ask if you want to add them. You can add multiple service providers at once. The service providers are added after you choose exit
.
This package can also be used as a standalone CLI command.
php artisan service-provider:add
You can add the --composer
or -c
option to run the command in composer mode (which will only add new service providers)
##Acknowledgements:
If you get an error after composer update, make sure you have the latest version of composer. You can run
composer self-update