RoleModal
class RoleModal extends Component
Properties
| bool | $showModal | ||
| int|null | $roleId | ||
| string | $name | ||
| string | $guard_name |
Methods
array
rules()
No description
void
create()
Open modal to create a new role.
void
edit(int $id)
Open modal to edit an existing role.
void
save()
Save the role (create or update).
void
close()
Close the modal without saving.
array
getGuardsProperty()
Get available guards.
render()
No description
Details
at line 16
protected array
rules()
No description
at line 27
void
create()
Open modal to create a new role.
at line 38
void
edit(int $id)
Open modal to edit an existing role.
at line 52
void
save()
Save the role (create or update).
at line 76
void
close()
Close the modal without saving.
at line 84
array
getGuardsProperty()
Get available guards.
at line 96
render()
No description