PHP code example of assurdeal / nova-action-button-selectors
1. Go to this page and download the library: Download assurdeal/nova-action-button-selectors library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
assurdeal / nova-action-button-selectors example snippets
...
use Assurdeal\ActionButtonSelector\ShowAsButton;
class MyAction extends Action
{
use InteractsWithQueue, Queueable;
use ShowAsButton;
...
...
public function actions(NovaRequest $request)
{
return [
MyCustomAction::make()
->onlyOnDetail()
->withoutConfirmation()
->showAsButton(false),
...