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