
Laravel Basic / Intermediate
Authored by PHP Fact
Computers
Professional Development

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the command to create a new Laravel project using Composer?
composer new project-name
composer create-project laravel/laravel project-name
laravel new project-name
php artisan new project-name
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which directory contains the migration files in a Laravel project?
app
database
resources
public
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which file is responsible for defining the web routes in Laravel?
routes.php
routes/web.php
routes/api.php
web.php
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which file is responsible for defining the api routes in Laravel?
routes.php
routes/web.php
routes/api.php
web.php
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you retrieve all records from a table using Eloquent ORM in Laravel?
Model::all()
Model::get()
Model::fetch()
Model::find()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the composer dump-autoload command in Laravel?
It updates the Laravel framework to the latest version.
It clears the cache for all Laravel services.
It regenerates the list of all classes that need to be included in the project.
It installs all the required packages and dependencies.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which file is used to define the database connection settings in Laravel?
.env
config/database.php
config/app.php
routes/web.php
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?