-
Create a custom class
-
Create a facade class
-
Create a provider using -> php artisan make:provider TesProvider
-
Add On that provider, in register function $this->app->bind('tes', function () { return new \App\Libraries\Tes; });
-
Add to config/app.php App\Providers\TesProvider::class, 'Xtrf' => App\Libraries\TesFacade::class,
-
composer dump-autoload
-
Done
Created
September 17, 2016 00:20
-
-
Save undefinedzain/a1a4f1d9630a24b4ce67c9e2ff2c55df to your computer and use it in GitHub Desktop.
Add Custom Facade on Laravel 5.3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment