19 lines
470 B
PHP
19 lines
470 B
PHP
<?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,
|
|
];
|
|
}
|
|
}
|