PermissionModal
class PermissionModal extends Component
Properties
| bool | $showModal | ||
| int|null | $permissionId | ||
| string | $name | ||
| string | $guard_name |
Methods
array
rules()
No description
void
create()
Open modal to create a new permission.
void
edit(int $id)
Open modal to edit an existing permission.
void
save()
Save the permission (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 permission.
at line 38
void
edit(int $id)
Open modal to edit an existing permission.
at line 52
void
save()
Save the permission (create or update).
at line 76
void
close()
Close the modal without saving.
at line 84
array
getGuardsProperty()
Get available guards.
at line 95
render()
No description