Basic Routing: Available Router Methods

Available Router Methods

The router allows you to register routes that respond to any HTTP verb.

Route::get($uri, $callback);
Route::post($uri, $callback);
Route::put($uri, $callback);
Route::patch($uri, $callback);
Route::delete($uri, $callback);
Route::options($uri, $callback);
Route::match(['get', 'post'], '/', function () {
    //
});

Route::any('foo', function () {
    //
});

Related concepts

Basic Routing: Available Router Methods — Structure map

Clickable & Draggable!

Basic Routing: Available Router Methods — Related pages: