What is facade in Laravel?


 A facade is a structural design pattern. Facade provides a simplified interface to a library and framework.
Basically, by the use of Facade, you can call any un-static method to like a static method. Due to which a lot of code has to be written less and code beauty increases.   

 

  In the laravel Facade serve as "static proxies " to underlying classes in the service container, providing the benefit of a terse, expressive syntax while maintaining more        testability and flexibility than traditional static methods
  
  All of Laravel's facades are defined in the Illuminate\Support\Facades namespace. So, we can easily access a facade like so:
  
  use Illuminate\Support\Facades\Cache;
  use Illuminate\Support\Facades\Route;
 
  Route::get('/cache', function () {
     return Cache::get('key');
  });