Action Url

How to get record from one resource to another resource through Action Url...
9 Replies
LeandroFerreira
LeandroFerreira16mo ago
can you share the code that you are trying to do?
Roshan_k
Roshan_kOP16mo ago
Action::make('employee_details')->label('Employee Details') ->url(fn (Work $record) => EmployeeWorkResource::getUrl('index', ['record' => $record])),
LeandroFerreira
LeandroFerreira16mo ago
is it a page action? What is the issue?
Roshan_k
Roshan_kOP16mo ago
in resource action...i need to get record in EmployeeWorkResource, how to retrive it.
LeandroFerreira
LeandroFerreira16mo ago
where is this action?
Roshan_k
Roshan_kOP16mo ago
this action in one rfesource
LeandroFerreira
LeandroFerreira16mo ago
ok but what page? did you register on getActionsor getHeaderActions?
Roshan_k
Roshan_kOP16mo ago
getActions
LeandroFerreira
LeandroFerreira16mo ago
can you share the whole code? getActions on the EditPage/ViewPage?
Want results from more Discord servers?
Add your server