how to pass id into name route in laravel code example Example: add id to route name in laravel blade route('something.edit', ['id' => $event->data->id])