singleloginsystem/app/Livewire/Forms/AssignRolesForm.php
= a37b6a91be Feat: Show Immutable Id field if user has a SAML App
- added a ImmuatableId field in manage roles
- Generate ImmutableId using user Id if not available
2026-05-27 10:43:44 +00:00

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 = '';
}