primo upload

This commit is contained in:
claus75a
2024-03-16 20:37:32 +01:00
commit e43b9b4b28
3019 changed files with 406000 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace Vanguard\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class SessionResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'id' => $this->id,
'user_id' => (int) $this->user_id,
'ip_address' => $this->ip_address,
'user_agent' => $this->user_agent,
'browser' => $this->browser,
'platform' => $this->platform,
'device' => $this->device,
'last_activity' => (string) $this->last_activity
];
}
}