route facade laravel code example
Example: laravel route pattern
Route::pattern('id', '[0-9]+');
Route::get('user/{id}', function ($id) {
// Only executed if {id} is numeric...
});
Route::pattern('id', '[0-9]+');
Route::get('user/{id}', function ($id) {
// Only executed if {id} is numeric...
});