- Removed inline data definitions from multiple dashboard components for roles, users, and connected apps, replacing them with service-based computed properties. - Added comprehensive debug and error-level logging throughout `SamlIdpService` and related controllers to improve traceability of SAML flows. - Cleaned up and centralized SAML-related logic, improving maintainability and error handling consistency. - Deleted unused `hr-permission.blade.php` component to reduce code redundancy.
28 lines
699 B
PHP
28 lines
699 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Data\Ui\Dashboard;
|
|
|
|
use App\Data\Ui\ManageRoles\RoleData;
|
|
use Spatie\LaravelData\Attributes\DataCollectionOf;
|
|
use Spatie\LaravelData\{Data, DataCollection};
|
|
|
|
final class LatestUserData extends Data
|
|
{
|
|
/**
|
|
* Create a new LatestUserData instance.
|
|
*
|
|
* @param DataCollection<int, RoleData>|null $roles
|
|
*/
|
|
public function __construct(
|
|
public string $name,
|
|
public string $email,
|
|
public string $initials,
|
|
public string $registeredAt,
|
|
/** @var DataCollection<int, RoleData>|null */
|
|
#[DataCollectionOf(class: RoleData::class)]
|
|
public ?DataCollection $roles = null,
|
|
) {}
|
|
}
|