How to pass parameter to a create form ? #14660
-
PackagePanel builder Package Versionv3.2.81 How can we help you?Hi everybody, Here is the thing. I have a table of Here is the action code Tables\Actions\Action::make('Facture +')
->icon('heroicon-s-folder-plus')
->tooltip('Ajouter une facture')
->color('gray')
->url( fn($record):string=>SupplierInvoiceResource::getUrl('create', ['supplier_id' => $record->id])), In the public $supplier_id = null ; The URL is good, I reach the Creation Form and the parameter is present in the URL but I don't know how to retrieve this parameter in the Form. How can I use this id in the Form of the Any help will be appreciated Did |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Maybe injecting $request ? |
Beta Was this translation helpful? Give feedback.
-
Great ! It works perfectly ! Thanks |
Beta Was this translation helpful? Give feedback.
Maybe injecting $request ?