Posted: 21-07-2017

Package Auto-Discovery In Laravel 5.5

Package Auto-Discovery In Laravel 5.5

One of the most tedious task in Laravel  is whenever you include a package into your application.

You always need to repeat these step:

• Get the package in composer
• Register the provider in the app.php file
• Regiter any facade if used in the package

Now Laravel 5.5 adds the ability for packages to automatically register service providers and add aliases through the package's configuration in composer.json just addin this extra line in your file:

Taylor Otwell provides an in depth explanations about it.