konsulting / nova-action-buttons
Allow actions to be shown as buttons in Laravel Nova
Installs: 351
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: ^7.3|^8.0
- laravel/nova: ^4.27
README
THIS IS AN EARLY VERSION, TESTING AND FEEDBACK IS RECOMMENDED
As simple as possible package to allow showing actions as buttons rather than just dropdown list items.
We have used some other packages in the past, but as Nova evolves they have broken and not maintained quickly enough leading to bugs that are hard to track down.
To install, simply:
composer require konsulting/nova-action-buttons:^0.1
To use, you will need to identify actions to be shown as a button. This will apply to Index Actions, Detail actions, Standalone and Inline Actions.
First add the trait to the Action.
use \Konsulting\NovaActionButtons\ShowAsButton; class ExampleAction extends Action { use InteractsWithQueue, Queueable, ShowAsButton; //... }
Then in the resources actions
method you need to use the showAsButton()
method when building the action.
(new ExampleAction)->showAsButton();
We are happy to receive contributions to this package.