Adding Header Action to a resource
I see the option to add it on resource pages, but I just want it to appear on top next to the "New whatever" button. I tried getHeaderActions() on my WhateverResource.php and it doesnt seem to add the link.
Solution
I added this to the List:
Actions\Action::make('download')
->label(__('Download Plugin'))
->icon('heroicon-o-arrow-down-tray')
->url(function () {
return "/plugins/seed-manager.zip";
}),
Actions\Action::make('download')
->label(__('Download Plugin'))
->icon('heroicon-o-arrow-down-tray')
->url(function () {
return "/plugins/seed-manager.zip";
}),