Action Url

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

Did you find this page helpful?