- Added `priority` column to `roles` table with migration and model updates. - Introduced priority management methods in `RoleService` and validation logic for updates. - Enhanced access-manager UI to display and edit role priorities via a modal. - Updated related data classes and views to support and handle the new priority field.
17 lines
304 B
PHP
17 lines
304 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Livewire\Forms;
|
|
|
|
use Livewire\Attributes\Validate;
|
|
|
|
class CreateRoleForm extends AssignAppToRoleForm
|
|
{
|
|
#[Validate('required|string|max:255|min:3')]
|
|
public string $name = '';
|
|
|
|
#[Validate('required|integer|min:0')]
|
|
public int $priority = 0;
|
|
}
|