Primo commit: trasferimento del progetto PPEasy

This commit is contained in:
2024-09-18 10:30:50 +02:00
commit eb475f257e
4233 changed files with 1043848 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
];
}
}