Laravel Basic / Intermediate

Laravel Basic / Intermediate

Professional Development

50 Qs

quiz-placeholder

Similar activities

Microsoft Azure Fundamentals AZ-900 ENG #6

Microsoft Azure Fundamentals AZ-900 ENG #6

University - Professional Development

50 Qs

PBO XII - LATIHAN SOAL 1

PBO XII - LATIHAN SOAL 1

7th Grade - Professional Development

50 Qs

AWS Database & Networking

AWS Database & Networking

Professional Development

45 Qs

Android ATC_Practice 3

Android ATC_Practice 3

Professional Development

45 Qs

DGI- QUIZ

DGI- QUIZ

Professional Development

50 Qs

ITF+ Study Quiz 3

ITF+ Study Quiz 3

Professional Development

51 Qs

Test 2- units 6-15

Test 2- units 6-15

Professional Development

50 Qs

SC-01.6

SC-01.6

Professional Development

50 Qs

Laravel Basic / Intermediate

Laravel Basic / Intermediate

Assessment

Quiz

Computers

Professional Development

Hard

Created by

PHP Fact

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?