optional path parameters laravel code example
Example: laravel route match
Route::match(['get', 'post'], '/', function () {
//
});
Route::any('/', function () {
//
});
Route::match(['get', 'post'], '/', function () {
//
});
Route::any('/', function () {
//
});