appzcoder / laravel-package-discovery
Laravel Package Auto Discovery for < 5.5
Installs: 10 053
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: >=5.5.9
- illuminate/support: ^5.1
This package is not auto-updated.
Last update: 2024-12-19 08:06:18 UTC
README
This package supports Package Auto Discovery feature on Laravel older version (less than 5.5)
Requirements
Laravel >=5.1
PHP >= 5.5.9
Installation
Open your terminal(CLI), go to the root directory of your Laravel project, then follow the following procedure.
-
Run
composer require appzcoder/laravel-package-discovery:dev-master
-
Add service provider to config/app.php.
'providers' => [ ... Appzcoder\LaravelPackageDiscovery\LaravelPackageDiscoveryServiceProvider::class, ],
-
Add the dump script to composer.json.
"scripts": { ... "post-autoload-dump": [ "Appzcoder\\LaravelPackageDiscovery\\ComposerScripts::postDump" ] },
-
Run
composer dump-autoload
Usage
Make sure your package's composer.json file as below
"extra": { "laravel": { "providers": [ "Barryvdh\\Debugbar\\ServiceProvider" ], "aliases": { "Debugbar": "Barryvdh\\Debugbar\\Facade" } } }