Eloquent ORM
Test
Model Test
Ebook
Quiz-1 : Installation and Configuration, Laravel
Quiz-2 : Basic, Laravel
Quiz-4 : Frontend, Laravel
Quiz-7 : Eloquent ORM, Laravel
Index
Laravel Home
Installation and Configuration
15
Basic
41
Frontend
12
Security
1
Eloquent ORM
12
Appendix
33
Schools
Ebook
Question:
ORM stands for _____
A
Object Relation Management
B
Object Relationship Management
C
Object Relational Mapping
D
Object Relational Management
Note:
Not available
Show answer
Show Note
Report
Question:
How can you create a model in laravel using artisan command?
A
> php artisan make:model [ModelName]
B
> php artisan create:model [ModelName]
C
> php artisan make:[ModelName] model
D
> artisan make:[ModelName] model
Note:
Not available
Show answer
Show Note
Report
Question:
Which command is used to see migration status?
A
$ php artisan migrate status
B
$ php artisan migrate:status
C
$ php artisan migration:status
D
None
Note:
Not available
Show answer
Show Note
Report
Question:
In laravel accessors means _____
A
Member Functions
B
Events
C
Getter Functions
D
Setter functions
Note:
Not available
Show answer
Show Note
Report
Question:
In laravel mutators means ______
A
Setter functions
B
Getter functions
C
Events
D
Member functions
Note:
Not available
Show answer
Show Note
Report
Question:
Which variable is used to validate your model in laravel?
A
$validator
B
$validation
C
$rules
D
$validation_rules
Note:
Not available
Show answer
Show Note
Report
Question:
Which function is used to retrieve a single record from a table by primary key in laravel?
A
App\MyModel::find_by_id()
B
App\MyModel::findId()
C
App\MyModel::find()
D
App\MyModel::get()
Note:
Not available
Show answer
Show Note
Report
Question:
Which laravel function is used to make pagination?
A
{!! $data->render() !!}
B
{!! $data->paginate() !!}
C
{!! $data->pages() !!}
D
None
Note:
Not available
Show answer
Show Note
Report
Question:
How can you insert a new record in the table in laravel?
A
$row=new MyModel; $row->field1=’Field1 Value’ $row->save()
B
$row=new MyModel; $row->field1=’Field1 Value’ $row->insert()
C
$row=new MyModel; $row->field1=’Field1 Value’ $row->create()
D
$row=new MyModel; $row->field1=’Field1 Value’ $row->add()
Note:
Not available
Show answer
Show Note
Report
Question:
How can you update an existing record in laravel using a Model?
A
$row=new MyModel; $row->field1=’Field1 Value’ $row->save()
B
$row=new MyModel; $row->field1=’Field1 Value’ $row->insert()
C
$row=MyModel::find($id); $row->field1=’Field1 Value’ $row->create()
D
$row=new MyModel::find($id); $row->field1=’Field1 Value’ $row->save()
Note:
Not available
Show answer
Show Note
Report
First
Prev
1
2
Next
Last
/2
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd