Worksheetsgroup C trail 2
Total questions: 10
Worksheet time: 2mins
Which folder in Laravel stores your Eloquent models by default?
/routes
/app/Models
/resources
/vendor
Which HTTP status code means “Resource Not Found”?
404
401
201
206
What does php artisan serve do?
Starts Laravel’s development server
Runs database migrations
Clears cache
Installs dependencies
n a REST API, what is the main purpose of the GET method?
Delete data
Update data
Retrieve data
Upload files
What is the purpose of Laravel middleware?
Handle database queries
Process HTTP requests before reaching controllers
Run cron jobs
Manage Blade templates
What is an Eloquent “relationship”?
connection between two models
A type of route
A PHP extension
A database migration
Which command installs a new Laravel project?
laravel serve
php artisan new
composer create-project laravel/laravel
artisan make:project
What is the purpose of the storage/ folder in Laravel?
Save user avatars, logs, cache
Store HTML files
Store Blade templates
Store PHP libraries
What is the default HTTPS port?
22
80
53
neither
What is the purpose of the Accept header in a REST API request?
Defines allowed domains
Specifies the expected response format
Sets maximum request body size
Provides authentication token
