- 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.
16 lines
241 B
PHP
16 lines
241 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Data\Role;
|
|
|
|
use Spatie\LaravelData\Data;
|
|
|
|
final class UpdateRolePriorityData extends Data
|
|
{
|
|
public function __construct(
|
|
public int $roleId,
|
|
public int $priority,
|
|
) {}
|
|
}
|