Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel route namespace and prefix

Route::get('/user/{name?}', function ($name = null) {
    return $name;
});

Route::get('/user/{name?}', function ($name = 'John') {
    return $name;
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #route #namespace #prefix
ADD COMMENT
Topic
Name
6+3 =