- Replaced `duration` (integer, days) with `validUpto` (datetime) in role-app assignments. - Updated `AssignAppsToRoleData`, `AppRole` model, and Livewire forms to adopt the new `validUpto` field. - Adjusted database migrations and UI components to reflect the change in validity representation. - Enhanced validity date inputs with support for "Unlimited" roles using toggles.
18 lines
298 B
PHP
18 lines
298 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Data\Role;
|
|
|
|
use Spatie\LaravelData\Data;
|
|
|
|
final class AssignAppsToRoleData extends Data
|
|
{
|
|
public function __construct(
|
|
public int $roleId,
|
|
public string $validUpto,
|
|
/** @var int[] */
|
|
public array $appIds
|
|
) {}
|
|
}
|