All Laravel quizzes
Intermediate30 questions60 minutes

Laravel Intermediate Quiz

Explore middleware, authentication, validation, relationships, and advanced Eloquent features

Start the quiz

Sample questions from this quiz

A preview of the style and depth. Try each one, then reveal the answer — or skip straight to the timed quiz.

1. What is middleware in Laravel?

  • A database layer
  • Middle layer software
  • A caching layer
  • HTTP request filter
Show answer

Answer: HTTP request filter. Middleware provides a mechanism for filtering HTTP requests. Can authenticate, log, modify requests/responses. Defined in app/Http/Middleware.

2. How do you create middleware?

  • php artisan create:middleware MiddlewareName
  • artisan new:middleware MiddlewareName
  • laravel make:middleware MiddlewareName
  • php artisan make:middleware MiddlewareName
Show answer

Answer: php artisan make:middleware MiddlewareName. `php artisan make:middleware MiddlewareName` creates middleware. Register in app/Http/Kernel.php in $middleware, $middlewareGroups, or $routeMiddleware.

3. What is Laravel authentication?

  • Security system
  • Both a and b
  • User verification
  • Built-in authentication system
Show answer

Answer: Both a and b. Laravel provides complete authentication system including registration, login, password reset. Use `php artisan make:auth` (Laravel UI) or Laravel Breeze/Jetstream.

Frequently asked questions

How many questions are in this Laravel quiz?+

30 questions, with a 60-minute time limit. Every question includes a written explanation of the correct answer.

Is this Laravel quiz free?+

Yes. Every quiz on CodexQuizz is free and needs no account. You only enter a name if you choose to post your score to the leaderboard.

What level is the intermediate quiz aimed at?+

Explore middleware, authentication, validation, relationships, and advanced Eloquent features

Can I use this to prepare for a Laravel interview?+

Yes. The questions cover the topics that come up in Laravel technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.

Ready to test your Laravel?

30 questions, 60 minutes. Free, no sign-up.

Start now