Question
Answer
Level
Subject
Time
Which method is used to redirect one URI to another?
Route::redirect()
Route::to()
Route::move()
Route::send()
Very Easy
Routes
01:00
How do you define a route that responds to all HTTP verbs?
Route::all()
Route::global()
Route::any()
Route::every()
Easy
Routes
01:00
Which character is used to define an optional parameter in a route?
*
?
!
$
Very Easy
Routes
01:00
Where are the web-specific routes defined in a default Laravel installation?
api.php
console.php
channels.php
web.php
Very Easy
Routes
02:40
Which method allows you to limit a route to only HTTPS?
->secure()
->encrypted()
->ssl()
->https()
Medium
Routes
02:00
Which Artisan command is used to create a controller with CRUD methods?
make:controller --all
make:controller --resource
make:controller --crud
make:controller --api
Very Easy
Controllers
01:00
What magic method is called for a Single Action Controller?
__invoke()
__call()
__construct()
__handle()
Easy
Controllers
01:00
In which directory are Controllers stored by default?
app/Controllers
app/Base/Controllers
app/Http/Controllers
routes/Controllers
Very Easy
Controllers
01:00