The facade gives the “static” interface to all the classes available in the service container of the application. Laravel comes along with many interfaces that provide the access to almost all the features of Laravel.

All the facades are defined in the namespace Illuminate\Support\Facades for easy accessibility and usability.

laravel interview questions

BY Best Interview Question ON 29 Dec 2022


use Illuminate\Support\Facades\Cache;

     Route::get('/cache', function () {

     return Cache::get('PutkeyNameHere');