Online Interview Questions

Prepare interviews on Anything, AnyWhere

PHPSCOTS,Blogger, Developer Views: 8632
Laravel 5 interview questions

Installation questions

List Server Requirements for installing Laravel 5.5

How many way you can install laravel ? List them ?

What is Composer? How to install composer

How to create a Laravel Project using composer.

What is Laravel Homestead ?

How to start laravel Local Development Server.

Explain what is  Valet?

List the steps to Configure Laravel application.

In order to run Laravel what permissions are required to be on storage and the bootstrap/cache directories ?

How to generate Application Key in laravel ? why it is neccessary ?

How to generate Pretty URLs in Laravel?


In which directory laravel configartion files are kept.

How to do Environment Configuration in Laravel.

How can you  retrieve values for laravel configration files.

How to retrive/get current environment in Laravel.

How to get/set configuration values in laravel?

How to enable or disable maintaince mode in Laravel.

Directory Structure

Explain the directory structure of laravel 5.5.


List out the plateforms Laravel Homestead supports ?

List the Software’s included in Laravel Homestead ?

How to install Homestead Vagrant Box ?

Please provide steps to Configure Homestead ?

How to launch Vagrant Box ?

What is Vagrantfile and Homestead.yaml , how to generate it on Homestead ?

How to install Installing MariaDB on Homestead ?

Command to connect vagrant via ssh ?

How to add Additional Sites in Homestead environment?

List Site Types supported by Homestead?

How to configure Cron jobs in Homestead ?

List the default ports that are forwarded to your Homestead environment?

How to share your Homestead with others.

Is Multiple PHP Versions are supported by Homestead ?

How to enable Multiple PHP Versions in Homestead ?

How to configure network interfaces in Homestead ?

How can you update Homestead ?


List the applications supported by Valet?

Is Valet supports windows or Ubuntu environment?

List the requirements to install Valet ?

What is Homebrew ?

How to install Valet ?

How to start and stop Valet ?

By default Valet serve your app on which TLD? How to configure it to use another domain ?

How to install and start, stop mysql on Valet?

How to upgrade Valet To Valet 2.0 ?

How to serve sites on Valet ?

What does valet park and link command do?

How to Serve sites with TLS on Valet ?

How to Share Sites with external world on valet ?

List some use Valet Commands?

Request Lifecycle

Explain Request life cycle of laravel.

What is name of first file that loaded in Laravel?

What is HTTP / Console Kernels in laravel?

Service Container

Explain Service Container ?

How to bind a service container to a service provide.

What is Contextual Binding ?

How to resolve class instance out of the container in Laravel ?

Explain Automatic Injection in Laravel ?

Service Providers

What are Service Providers?

How can you write your own service provider in laravel.
What service provider’s Register Method does ?

How to register a service provider in laravel ?

What are Deferred Providers in laravel ?

How to register a service provider via composer in Laravel ?


What are Laravel Facades?

How Facades are different from Dependency injection ?

What getFacadeAccessor method does?


Explian Laravel Contracts?

Differce between Contracts and Facades?

How to do 301 redirects in Laravel ?

Explain Named Routes in Laravel ?

How to generate Urls from named named Routes?

How to do subdomain routing in Laravel ?

What are Route Prefixes ?

How to return a view from route in Laravel ?

How to configure route cache and clear route cache in Laravel ?

How to list all routes in Laravel ?

What Route Model Binding ?

What is difference between Implicit and Explicit route Binding in Laravel ?

Explain Method Spoofing ?

How to get current Url in Laravel ?

What are middlewares in Laravel ?

How to create custom Middleware in Laravel ?

How to register a middleware in Laravel ?

Can we assign multiple middlewares to a route.

How to add a middleware in route group/

What are Terminable Middlewares ?

How to add CSRF Protection in Laravel ?

How can you Exclude URIs From CSRF Protection in Laravel ?

What is X-CSRF-TOKEN , how it is different from CSRF Tokens ?

What are Controllers in Laravel ?

How to create a controller in Laravel ?

How to register a middlewares in Laravel controller ?

How to generate a controller with resources in Laravel ?

How to Localize Resource URIs in Laravel ?

How to do Dependency Injection in Laravel Controllers?

How to get requested path in Laravel ?

Checking request type is post or not ?

How to check  request is ajax or not ?

How to retrive all requested data in Laravel ?

How to check an Input value is present or not in Laravel ?

What are Cookies ? How to get , set , distroy cookies in Laravel ?

Write code to upload a file in Laravel 5 ?

What are Macros in Laravel?

How to redirect user with Flashed Session Data in Laravel?

Also, Read 30+ Laravel interview questions and for Freshers

Leave a Reply

Your email address will not be published. Required fields are marked *