Tag Archives: laravel interview questions

What is Kernel in laravel?

Click here for more interview questions Two types of kernel available in laravel, Http kernel- app/http/kernel.php Console kernel- console/kernel.php Kernel defines the list of midddleware and middleware will handle session,aunthentication,verifycsrftoken etc. Kernel extends base class- Illuminate\Foundation\Http\Kernel it defines bootstrappers .Thesse bootstrapers configure error handling,logging,detecting application environment Click here for more interview questions

What is Middleware in laravel?

Click here for more interview questions Middleware acts as bridge between request and response. Middleware verifies the user is authenticated or not depends on this it is redirect to home and login page. command to create middleware php artisan make:middleware Two types of middleware in laravel global middleware- run on every http request routemiddleware-assigned to… Read More »

Maintenance mode in laravel

Click here for more interview questions If the application in maintenance mode MaintenanceModeException exception will be throwing use the below command to make application down php artisan down application down with message php artisan down –message “some maintenance work gong on will be back soon” –retry=60 even in the maintenance mode some specific ip can… Read More »

What is configuration caching

Click here for more interview questions cache all configuration file into a single file, which load quickly by the framework php artisan config:cache normaly this will execute in the deployment,because local development configuration file frequntly changing. once configuration cached env file will not be loaded it will be null Click here for more interview questions