Laravel

Laravel Fundamentals

Project structure, artisan, routing, controllers, views, Blade templates, service container

20 면접 질문·
Junior
1

What is Artisan in Laravel?

답변

Artisan is Laravel's built-in command-line interface. It automates many repetitive tasks such as creating controllers, models, migrations, and other components. This interface streamlines development by providing ready-to-use commands and the ability to create custom commands.

2

Which folder contains the route files in a Laravel application?

답변

The routes folder located at the project root contains all route definition files. By default, Laravel includes web.php for web routes with sessions and CSRF, api.php for stateless API routes, console.php for Artisan commands, and channels.php for real-time broadcast channels.

3

Which Artisan command lists all defined routes?

답변

The php artisan route:list command displays a summary table of all registered routes in the application. This table includes HTTP methods, URIs, route names, associated actions, and applied middlewares. This command is essential for debugging and verifying routing configuration.

4

Where are Blade views located by default in a Laravel project?

5

What file extension is used for Blade templates?

+17 면접 질문

다음 면접을 위해 Laravel을 마스터하세요

모든 질문, flashcards, 기술 테스트, 코드 리뷰 연습, 면접 시뮬레이터에 접근하세요.

무료로 시작하기