PHP code example of opscale-co / nova-toolbar-actions

1. Go to this page and download the library: Download opscale-co/nova-toolbar-actions 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/ */

    

opscale-co / nova-toolbar-actions example snippets


use Laravel\Nova\Actions\Action;
use Opscale\NovaToolbarActions\ShowAsButton;

class ActivateUser extends Action
{
    use ShowAsButton;

    public $standalone = true;

    // ...
}

public function actions(NovaRequest $request): array
{
    return [
        ActivateUser::make()->showAsButton(),
    ];
}