Laravel MCQ Test: Laravel MCQs - Practice Questions
1. What is the purpose of Eloquent in Laravel?
2. What does the 'php artisan migrate' command do in Laravel?
3. What is the purpose of Laravel's 'middleware'?
4. What is the primary function of Laravel's 'Resource Controllers'?
5. Which command is used to start the Laravel development server?
6. What is the purpose of Laravel's 'database migrations'?
7. What is the purpose of Laravel Mix?
8. Which file is used to configure database connections in Laravel?
9. What is the primary purpose of 'Laravel Mix'?
10. What is the purpose of the routes/web.php file in Laravel?
11. What is the purpose of Laravel's 'Artisan' command-line tool?
12. Which Laravel middleware is used for handling CORS (Cross-Origin Resource Sharing) in your application?
13. What is the purpose of the RouteServiceProvider in Laravel?
14. What is 'Laravel Passport' used for?
15. Which command is used to create a new Laravel controller?
16. What is the default database connection type in Laravel?
17. What is the purpose of Laravel's 'composer.json' file?
18. Which command is used to create a new Laravel project?
19. What is the purpose of the Laravel 'firstOrCreate' method in Eloquent?
20. What is the purpose of the app/Http/Controllers folder in Laravel?