Get url param in CreateRecord

In ProductResource, i have product_request_id as a query parameter. How can i access the ProductRequest model in CreateProduct page
3 Replies
Iliyas M
Iliyas MOP2y ago
I can't able to add ProductRequest as parameter in mount function of CreateProduct page
Patrick Boivin
You can get it from the request helper and save it to a public property:
$this->product_request_id = request()->get('product_request_id');
$this->product_request_id = request()->get('product_request_id');
[BR]Darkriders
[BR]Darkriders9mo ago
it works with friendly url params ? ex: admin/cliente/2/orgaos 2 is a client_id param
Want results from more Discord servers?
Add your server