add all controllers logic

This commit is contained in:
root
2026-03-11 17:53:15 -04:00
parent 3e6c577085
commit 2ef71cc92b
421 changed files with 12009 additions and 5211 deletions
@@ -1,20 +0,0 @@
<?php
namespace App\Http\Resources\Auth;
use Illuminate\Http\Resources\Json\JsonResource;
class SessionTimeoutConfigResource extends JsonResource
{
public function toArray($request): array
{
return [
'timeout' => (int) ($this['timeout'] ?? 0),
'warning_time' => (int) ($this['warning_time'] ?? 0),
'check_interval' => (int) ($this['check_interval'] ?? 0),
'logout_url' => (string) ($this['logout_url'] ?? ''),
'keep_alive_url' => (string) ($this['keep_alive_url'] ?? ''),
'check_url' => (string) ($this['check_url'] ?? ''),
];
}
}
@@ -1,18 +0,0 @@
<?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,
];
}
}