Added new column user resource..

This commit is contained in:
Cüneyt Şentürk 2022-06-17 14:25:58 +03:00
parent d48ccdc628
commit 61ed4e1f52

View File

@ -21,8 +21,11 @@ class User extends JsonResource
'name' => $this->name,
'email' => $this->email,
'locale' => $this->locale,
'landing_page' => $this->landing_page,
'enabled' => $this->enabled,
'created_from' => $this->created_from,
'created_by' => $this->created_by,
'last_logged_in_at' => $this->last_logged_in_at ? $this->last_logged_in_at->toIso8601String() : '',
'created_at' => $this->created_at ? $this->created_at->toIso8601String() : '',
'updated_at' => $this->updated_at ? $this->updated_at->toIso8601String() : '',
'companies' => [static::$wrap => Company::collection($this->companies)],