Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel route name with parameters

Route::get('/user/{id}/profile', function ($id) {
    //
})->name('profile');

$url = route('profile', ['id' => 1]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #route #parameters
ADD COMMENT
Topic
Name
8+3 =