Skip to main content
Laravel Code Completion Easy +10 XP

Route GET

Complete the basic GET route definition.

LaravelFill in the blank
Route::___(  '/home', [HomeController::class, 'index']);

Type the missing code

Show answer and explanation

Answer: get

Route::get() defines a GET route. Other HTTP verbs use Route::post(), Route::put(), Route::delete(), etc.

Hint: Which HTTP method retrieves a resource?

What this challenge tests

Code Completion in Laravel: routing, http.

Related challenges