Actions

⚛️ Atomic Panel has custom Actions button in model index (Actions Column).

Widget
🔥 Atomic Model has AtomicActions method.

AtomicActions()

🔥 This method to register actions to model index.

public static function AtomicActions()
{
    return [
    new SetDefaultVersion()
    ];
}
1
2
3
4
5
6

CanSee()

if you want to authorize actions for custom users or condition you can use canSee method return false or true to hide or show field:

(new SetDefaultVersion())->canSee(function () {
             return true;
})
1
2
3