vilerium
vilerium
FFilament
Created by vilerium on 9/21/2023 in #❓┊help
How to open a custom page from a custom table action?
This worked:
Action::make('report')->link()->url(function (Device $device) {
return DeviceResource::getUrl('report', ['record' => $device]);
})
Action::make('report')->link()->url(function (Device $device) {
return DeviceResource::getUrl('report', ['record' => $device]);
})
6 replies
FFilament
Created by vilerium on 9/21/2023 in #❓┊help
How to open a custom page from a custom table action?
public static function report(Device $record) {
dd(DeviceResource::getUrl('report', ['record' => $record]));

}
public static function report(Device $record) {
dd(DeviceResource::getUrl('report', ['record' => $record]));

}
this gives the correct url but idk how to go to the page
6 replies
FFilament
Created by vilerium on 9/21/2023 in #❓┊help
How to open a custom page from a custom table action?
I want it to be a form to report a device is out of service, I was thinking about making it an action so that when clicked it changes the device status and opens the form page to create a ticket
6 replies