add SessionTimeout logic

This commit is contained in:
root
2026-03-10 16:45:08 -04:00
parent 2e9a391280
commit 311bb93977
15 changed files with 534 additions and 292 deletions
@@ -0,0 +1,18 @@
<?php
namespace App\Http\Resources\Auth;
use Illuminate\Http\Resources\Json\JsonResource;
class SessionTimeoutStatusResource extends JsonResource
{
public function toArray($request): array
{
return [
'status' => (string) ($this['status'] ?? ''),
'time_remaining' => (int) ($this['time_remaining'] ?? 0),
'redirect' => $this['redirect'] ?? null,
'message' => $this['message'] ?? null,
];
}
}