21 lines
634 B
PHP
21 lines
634 B
PHP
<?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'] ?? ''),
|
|
];
|
|
}
|
|
}
|