- added a ImmuatableId field in manage roles - Generate ImmutableId using user Id if not available
34 lines
667 B
PHP
34 lines
667 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Livewire\Forms;
|
|
|
|
use Livewire\Attributes\Validate;
|
|
use Livewire\Form;
|
|
|
|
class AssignRolesForm extends Form
|
|
{
|
|
/**
|
|
* Holds the roles that the user has
|
|
*
|
|
* @var array <int, int>
|
|
*/
|
|
#[Validate('required|array')]
|
|
public array $roleIds = [];
|
|
|
|
/**
|
|
* Holds the direct permissions toggled for the user (from all selected roles).
|
|
*
|
|
* @var array<int, int>
|
|
*/
|
|
#[Validate('nullable|array')]
|
|
public array $permissions = [];
|
|
|
|
/**
|
|
* Holds the SSO Immutable ID for the user.
|
|
*/
|
|
#[Validate('nullable|string|max:255')]
|
|
public string $immutableId = '';
|
|
}
|