Skip to content

Add canRun() #5

@jerrychee94

Description

@jerrychee94

This will not work in fields method.

ActionButton::make('Action')->action((new AddRemark)->canSee(function () {
                return false;
            }), $this->id),

But it works in actions method

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions