Laravel
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:
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
Question:
How can you delete a record from a table in laraval using a Model?
A
$row=new MyModel::find($id); $row->delete()
B
$row=new MyModel::find($id); $row->clear()
C
MyModel::destroy($id);
D
MyModel::delete($id);
Note:
Not available
Show answer
Show Note
Report
Question:
Which artisan command use to encoding and serializing cache in routes
A
$ php artisan route : cache
B
$ php artisan route : class
C
$ php artisan route : complied
D
$ php artisan route : cached
Note:
Not available
Show answer
Show Note
Report
Question:
What purpose of laravel forge?
A
Conjunction with another hosting service
B
Connection with the database.
C
Loading the full application.
D
All
Note:
Not available
Show answer
Show Note
Report
Question:
How can you cache using artisan command?
A
$ php artisan clear: route
B
$ php artisan route : clear
C
$ php artisan route : remove
D
$ php artisan route : destroy
Note:
Not available
Show answer
Show Note
Report
Question:
Which middleware is used to manage CSRF protection?
A
TokenVerifyCsrf.php
B
RedirectIfAuthenticated.php
C
VerifyCsrfToken.php
D
RedirectCsrfToken.php
Note:
Not available
Show answer
Show Note
Report
Question:
Which middleware is used to confirm a user is signed in to the application?
A
Authenticated.php
B
RedirectIfAuthenticated.php
C
VerifyCsrfToken.php
D
AuthenticatedRedirect.php
Note:
Not available
Show answer
Show Note
Report
Question:
TodoList::take(5)->skip(10)->orderby(“id”, asc)->get() means
A
Select the first 5 records after skipping 10 records
B
Select the last 5 records after skipping 10 records
C
Select the first 5 records
D
Select the last 5 records
Note:
Not available
Show answer
Show Note
Report
First
Prev
6
7
8
9
10
Next
Last
/12
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2025. Powered by
Intellect Software Ltd