laravel 5.8 blade route name code example
Example 1: add id to route name in laravel blade
route('something.edit', ['id' => $event->data->id])
Example 2: laravel route
Route::get('user/{id}', function ($id) {
return 'User '.$id;
});
route('something.edit', ['id' => $event->data->id])
Route::get('user/{id}', function ($id) {
return 'User '.$id;
});