[Solved] What is Facades and how it works? (Specially for Laravel) [duplicate]


A Facade is an alias to classes that are available in the application’s service container, these classes can be Laravelor vendor package classes. Facades are used because they provide a terse, memorable syntax that allows us to use Laravel/Vendor features without remembering long class names.

In short Facades allow you to use fro example JWTAuth::getToken(), instead of having to type out Tymon\JWTAuth::getToken() in full, increasing code readability.

[read More][1][1]: https://laravel.com/docs/5.5/facades

1

solved What is Facades and how it works? (Specially for Laravel) [duplicate]