Add missing role in user crud config
This commit is contained in:
parent
2bec1e1dc0
commit
bb343ac888
1 changed files with 13 additions and 0 deletions
|
|
@ -90,6 +90,19 @@ class User extends Authenticatable
|
|||
CrudAction::update(),
|
||||
]
|
||||
],
|
||||
'role' => [
|
||||
'label' => trans('Role'),
|
||||
'type' => CrudType::enum(),
|
||||
'enum' => Role::class,
|
||||
'required' => true,
|
||||
'nullable' => false,
|
||||
'actions' => [
|
||||
CrudAction::viewAny(),
|
||||
CrudAction::view(),
|
||||
CrudAction::create(),
|
||||
CrudAction::update(),
|
||||
]
|
||||
],
|
||||
'projects' => [
|
||||
'label' => trans('Projets'),
|
||||
'type' => CrudType::belongsToMany(),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue