Facades in laravel explained
In general terms, a Facade (pronounced as /fəˈsɑːd/) is the exterior and front facing side of a building or any thing. Importance of facades are they are easy to notice and more prominent, similarly there is a concept of facades in laravel too. No, we are not developing a building through laravel rather we are going to manage our code readability and build easy to remember syntax of functions and classes through it.
As you know, there are two types of functions in any programming language so do in PHP, which are non static functions and static functions.
What do we mean by non static functions ?
What are static functions, then ?
What are facades in Laravel ?
How do I create a facade class and use in my application ?
Objective of this example
Step 1. Create a folder with the name “Facades” in app directory
Step 2. Create 2 Files in Facades directory
Step 3. Add the code in web.php