FilamentF
Filament17mo ago
2 replies
WashingtonG

Replicating and successRedirectUrl

Hello,
I enabled multi-tenancy and I am trying to redirect to the edit form after replicating a record, I listed the routes and the one I need looks like this:

GET|HEAD company/{tenant}/business-hours/{record}/edit ..................................................................................... filament.company.resources.business-hours.edit

I'd beed trying to redirect to the edit form using this piece of code:
->successRedirectUrl(fn($replica) => route('business-hours.edit', ['business-hours' => $replica->id])),

But I'm getting a Route not defined, Help please.
Was this page helpful?