Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel route pattern

Route::pattern('id', '[0-9]+');
Route::get('user/{id}', function ($id) {
    // Only executed if {id} is numeric...
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #route #pattern
ADD COMMENT
Topic
Name
7+2 =