PHP code example of digital-creative / icon-action-toolbar
1. Go to this page and download the library: Download digital-creative/icon-action-toolbar 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/ */
digital-creative / icon-action-toolbar example snippets
class UserResource extends Resource
{
public function actions(NovaRequest $request): array
{
return [
UpdateSubscription::make()->icon('credit-card'),
Unban::make()->icon('fire'),
DeleteInactiveUsers::make()->standalone()->icon('hand', label: 'Ban!'),
SendWeekNewsletter::make()->standalone()->icon('<svg>...</svg>'),
];
}
}