Question Bank
3705 approved questions from the community
What are Laravel Contracts?
How does Laravel perform data validation?
What is the N+1 problem in Eloquent and how can it be avoided?
What is the purpose of model events in Eloquent?
What is Eloquent ORM in Laravel?
Migrations in Laravel provide schema agnosticism, allowing you to update database schema without being tied to specific database vendors.
What is the purpose of routing in Laravel?
Which command starts Laravel's built-in development server?
Global middleware in Laravel is applied to every HTTP request regardless of the route.
Optional route parameters in Laravel are denoted with a question mark after the parameter name.
The `storage` and `bootstrap/cache` directories in Laravel must be writable.
Laravel requires the OpenSSL PHP extension to be installed.
What is the purpose of polymorphic relations in Eloquent?
What is the purpose of query scopes in Eloquent?
What is the purpose of the `composer install` command in Laravel setup?
What is the purpose of fallback routes in Laravel?
How can you apply regular expression constraints to route parameters in Laravel?
What are accessors and mutators in Eloquent?
What is eager loading in Eloquent?
What is the purpose of database migrations in Laravel?