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