Subjects

All subjects Django Java Python React Spring Boot JavaScript PHP
Sign Up Free
PHP 10 questions

Laravel Framework Fundamentals

Learn core Laravel framework components, routing, middleware, controllers, service containers, and dependency injection.

More PHP
Interview questions 1–10 of 10
1

What is Laravel and what problems does it solve?

Laravel is a PHP web application framework that provides structure, tools, and conventions so developers don't...

Read answer →
2

Explain the request lifecycle in Laravel.

Request Lifecycle Flow:1. public/index.php receives the request → 2. Bootstraps the Application (creates the s...

Read answer →
3

What is Eloquent ORM and how does it differ from raw SQL?

Eloquent is Laravel's ActiveRecord-style ORM. Each database table has a corresponding Model class used to inte...

Read answer →
4

What is middleware in Laravel and how do you create one?

Middleware acts as a filtering layer for HTTP requests entering your application - for example checking authen...

Read answer →
5

What are Laravel migrations and why are they useful?

Migrations are version control for your database schema, written as PHP code instead of manual SQL, so schema...

Read answer →
6

What is the difference between hasOne, hasMany, belongsTo, and belongsToMany relationships?

RelationshipMeaningForeign key locationhasOneOne model owns one related modelOn the related tablehasManyOne mo...

Read answer →
7

What is the service container in Laravel?

The service container is a tool for managing class dependencies and performing dependency injection - it autom...

Read answer →
8

What is the difference between $fillable and $guarded in Eloquent models?

Both control mass assignment protection - preventing attackers from setting unintended fields via bulk input l...

Read answer →
9

How does Laravel's Blade templating engine work?

Blade is Laravel's templating engine that compiles templates into plain PHP code, which is then cached for per...

Read answer →
10

What are Laravel Facades and how do they work internally?

Facades provide a static-looking interface to classes registered in the service container, giving expressive s...

Read answer →