add SessionTimeout logic
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?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'] ?? ''),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user