singleloginsystem/app/Data/Ui/Dashboard/LatestUserData.php
= 1a7134419c Refactor: Improve dependency injection for dashboard components and enhance SAML logging
- 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.
2026-06-01 13:05:59 +00:00

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,
) {}
}