Skip to content

Tag: laravel-facade

Create custom package with facade in Laravel 8

I am trying to develop a new Laravel package locally installed via Composer. These are my steps: I install a new Laravel application with composer create-project laravel/laravel my-application I create a new directory in the root with the following content: packages/randolf/custom-package/composer.json packag…

What is Facades used in Laravel?

I’m confused by the Facades offered by Laravel. The Laravel documentation states: Facades provide a “static” interface to classes that are available in the application’s service container. Laravel ships with many facades which provide access to almost all of Laravel’s features. L…