Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel route required parameter

// capture a user's ID from the URL by defining route parameters:
Route::get('user/{id}', function ($id) {
    return 'User '.$id;
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #route #required #parameter
ADD COMMENT
Topic
Name
3+7 =