Laravel 5.5 – Package Auto Discovery

Posted by Rukmi Patel | August 23, 2017

How we were doing Package installation in Laravel 5.4

Till Laravel 5.4, We were following standards steps to install and use package in Laravel Project.

  1. Install the package.
  2. Register the provider in app.php
  3. Register the Facade(Optional though)
composer require foo/bar
'Bar'=> Foo\Bar\Facade::class,

Steps are easy to perform but always requires to install package successfully. we need to make

Laravel 5.5 – Package installation is easy and more streamlined

Its going to change in Laravel 5.5. We can define “providers” and “aliases” directly into composer.json file.

"extra": { 
    "laravel": { 
        "providers": [ 
        "aliases": { 
            "Bar": "Foo\\Bar\\Facade" 

Package auto-discovery is a small change, but it has made installing packages easier and more streamlined in Laravel 5.5.

Blog Comments

Thank you for any other wonderful post. The place else may anyone get that kind of info in such an ideal approach of writing? I have a presentation next week, and I am at the look for such info.

Add a comment

*Please complete all fields correctly

Related Blogs

Posted by Rukmi Patel | December 2, 2019
iTreeni Technolabs Outshines at GoodFirms by Providing End-To-End Business Solutions
Empowering clients' business by leveraging technology-enabled solutions endows iTreeni Technolabs to tap into the list of top web development companies in Australia at GoodFirms. View iTreeni Technolabs' GoodFirms' profile to...
Posted by Rukmi Patel | April 9, 2019
Comparing Full Stack V/S MEAN Stack approach
The web and mobile app development services have stepped up to next level in last 5 years. Web and apps are all built utilizing a ‘stack’ of various technologies like...
Posted by Rukmi Patel | September 6, 2018
Headless Drupal or DeCoupled Drupal
Now a days, front-end technologies like Angular, React.js, Backbone.js etc have started attracting audience because of its advantages over traditional rendering approach. Server side frameworks like Laravel, Node.js have already...