PHP code example of energon7 / custom-action-selector
1. Go to this page and download the library: Download energon7/custom-action-selector 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/ */
energon7 / custom-action-selector example snippets
use Energon7\CustomActionSelector\CustomActionSelector;
//...
public function tools()
{
return [
new CustomActionSelector()
];
}
public $icon = '<svg> ... </svg>';
public function __construct()
{
$this->withMeta([
'icon' => $this->icon
]);
}
php artisan nova:action SomeAction