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.
- Install the package.
- Register the provider in app.php
- Register the Facade(Optional though)
composer require foo/bar Foo\Bar\ServiceProvider::class, '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": [ "Foo\\Bar\\ServiceProvider" ], "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.
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.