Skip to content

anditsung/nova-custom-action

Repository files navigation

#Custom Action for Laravel Nova

##install

composer require tsung/nova-custom-action
php artisan migrate

add "CustomAction::make()" to resource fields add to the last one to make the button same location as default action

public function fields(Request $request)
{
    return [

        ...

        CustomAction::make(),

    ];
}

add which resource have this action on actions resource

====================

changes => what will be updated when running the action

rules => to determine which resource can execute the action

====================

preview

active-action

active-user

deactive-action

deactive-modal

deactive-user

icons

minus-circle-danger-icon

plus-circle-success-icon

About

custom action for laravel nova resource

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published