This package allow you to change Nova actions from dropdown to buttons.
php: ^8
laravel/nova: ^4
composer require lexicon/nova-action-button-selectors
Index page with inline action
All Nova actions are changed from dropdown to buttons by default.
However, some actions you might need to show as dropdown which is default by Nova.
Add ActionAsButton trait at your Nova action
...
use Lexicon\ActionButtonSelector\ActionAsButton;
class NovaAction extends Action
{
use ActionAsButton, ....;
...
Add showInDropdown()
at your Nova resource
...
class NovaResource extends Resource {
...
public function actions(NovaRequest $request)
{
return [
Actions\NovaAction::make()->showInDropdown()
];
...
}
}