F
Filament15mo ago
Oumaima

use the same route in multiple panels

I have two panels Admin and seller , and I have a route called print labels : return [ 'index' => Pages\ListDeliveryNotes::route('/'), 'create' => Pages\CreateDeliveryNote::route('/create'), 'edit' => Pages\EditDeliveryNote::route('/{record}/edit'), 'view' => Pages\ViewdeliveryNote::route('/{record}'), 'print-labels' => Pages\printLabels::route('/labels/{number}/{record}') I want to call this route print-labels in the resource , where the prefix of the route changed : or exemple , if I'm in admin panel should be admin/delivery-note/labels/.. and if I'm in the seller panel should be seller/delivery-note/labels/.. , how can I call it , ->url(fn (DeliveryNote $record): string => route('filament.app.resources.delivery-notes.print-labels', ['number' => 6 , 'record' => $record])),
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server