Laravel 5 interview questions

#1 Question

How to create a Laravel Project using composer.

#2 Question

What is Laravel Homestead ?

#3 Question

How to start laravel Local Development Server.

#4 Question

Explain What is Valet?

#5 Question

List the steps to Configure Laravel application.

#6 Question

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

#7 Question

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

#8 Question

How to generate Pretty URLs in Laravel?

#9 Question

List Server Requirements for installing Laravel 5.5

#10 Question

What is Composer? How to install composer

#11 Question

In which directory laravel configartion files are kept.

#12 Question

How to do Environment Configuration in Laravel.

#13 Question

How can you retrieve values for laravel configration files.

#14 Question

How to retrive/get current environment in Laravel.

#15 Question

How to get/set configuration values in laravel?

#16 Question

How to enable or disable maintaince mode in Laravel.

#17 Question

Explain the directory structure of laravel 5.6.

#18 Question

List out the plateforms Laravel Homestead supports ?

#19 Question

List the Software’s included in Laravel Homestead ?

#20 Question

How to install Homestead Vagrant Box ?

#21 Question

Please provide steps to Configure Homestead ?

#22 Question

How to launch Vagrant Box ?

#23 Question

What is Vagrantfile and Homestead.yaml ,

#24 Question

How to generate it on Homestead ?

#25 Question

How to install Installing MariaDB on Homestead ?

#26 Question

Command to connect vagrant via ssh ?

#27 Question

How to add Additional Sites in Homestead environment?

#28 Question

List Site Types supported by Homestead?

#29 Question

How to configure Cron jobs in Homestead ?

#30 Question

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

#31 Question

How to share your Homestead with others.

#32 Question

Is Multiple PHP Versions are supported by Homestead ?

#33 Question

How to enable Multiple PHP Versions in Homestead ?

#34 Question

How to configure network interfaces in Homestead ?

#35 Question

How can you update Homestead ?

#36 Question

List the applications supported by Valet?

#37 Question

Is Valet supports windows or Ubuntu environment?

#38 Question

List the requirements to install Valet ?

#39 Question

What is Homebrew ?

#40 Question

How to install Valet ?

#41 Question

How to start and stop Valet ?

#42 Question

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

#43 Question

How to install and start, stop mysql on Valet?

#44 Question

How to upgrade Valet To Valet 2.0 ?

#45 Question

How to serve sites on Valet ?

#46 Question

What does valet park and link command do?

#47 Question

How to Serve sites with TLS on Valet ?

#48 Question

How to Share Sites with external world on valet ?

#49 Question

List some use Valet Commands?

#50 Question

Explain Request life cycle of laravel.

#51 Question

What is name of first file that loaded in Laravel?

#52 Question

What is HTTP / Console Kernels in laravel?

#53 Question

Explain Service Container ?

#54 Question

How to bind a service container to a service provide.

#55 Question

What is Contextual Binding ?

#56 Question

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

#57 Question

Explain Automatic Injection in Laravel ?

#58 Question

How can you write your own service provider in laravel.

#59 Question

What service provider’s Register Method does ?

#60 Question

How to register a service provider in laravel ?

#61 Question

What are Deferred Providers in laravel ?

#62 Question

How to register a service provider via composer in Laravel ?

#63 Question

What are Laravel Facades?

#64 Question

How Facades are different from Dependency injection ?

#65 Question

What getFacadeAccessor method does?

#66 Question

Explain Laravel Contracts?

#67 Question

Differce between Contracts and Facades?

#68 Question

How to do 301 redirects in Laravel ?

#69 Question

Explain Named Routes in Laravel ?

Named routes allow the convenient generation of URLs or redirects for specific routes. You may define a name for a path by chaining the name process onto the path definition.


Route::get('user/registration', function () {

#70 Question

How to generate Urls from named named Routes?

#71 Question

How to do subdomain routing in Laravel ?

#72 Question

What are Route Prefixes ?

#73 Question

How to return a view from route in Laravel ?

#74 Question

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

#75 Question

How to list all routes in Laravel ?

#76 Question

What Route Model Binding ?

#77 Question

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

#78 Question

How to get current Url in Laravel ?

#79 Question

What are middlewares in Laravel ?

#80 Question

How to create custom Middleware in Laravel ?

#81 Question

How to register a middleware in Laravel ?

#82 Question

Can we assign multiple middlewares to a route.

#83 Question

How to add a middleware in route group?

#84 Question

What are Terminable Middlewares ?

#85 Question

How to add CSRF Protection in Laravel ?

#86 Question

How can you Exclude URIs From CSRF Protection in Laravel ?

#87 Question

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

#88 Question

What are Controllers in Laravel ?

#89 Question

How to create a controller in Laravel ?

#90 Question

How to register a middlewares in Laravel controller ?

#91 Question

How to generate a controller with resources in Laravel ?

#92 Question

How to Localize Resource URIs in Laravel ?

#93 Question

How to do Dependency Injection in Laravel Controllers?

#94 Question

How to get requested path in Laravel ?

#95 Question

How to check request is ajax or not ?

#96 Question

How to retrive all requested data in Laravel ?

#97 Question

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

#98 Question

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

#99 Question

Write code to upload a file in Laravel 5?

#100 Question

What are Macros in Laravel?

Macros provide a way to add functionality to the classes wherein you do not have that function. It can help you to create a small reusable component that'll be possible to use it everywhere on your application.

#101 Question

How to redirect user with Flashed Session Data in Laravel?

Ask a Question