In Laravel, Facades offer a static interface to classes available inside the application's service container. They serve as static proxies for underlying classes present in the service container, offering benefit of expressive syntax while maintaining more flexibility and testability than other available traditional static methods.

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

laravel interview questions



use Illuminate\Support\Facades\Cache;

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

     return Cache::get('PutkeyNameHere');


Suggest An Answer

No suggestions Available!