mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 16:02:34 +00:00
2.x - php
This commit is contained in:
@ -43,6 +43,7 @@ protected function getHeaderActions(): array
|
||||
return [
|
||||
CreateAction::make()
|
||||
->label('Create User')
|
||||
->icon('heroicon-o-plus')
|
||||
->authorize('create', User::class)
|
||||
->action(function (array $data) {
|
||||
$user = app(CreateUser::class)->create($data);
|
||||
|
Reference in New Issue
Block a user