mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 15:02:34 +00:00
#591 - profile, users and projects
This commit is contained in:
@ -17,11 +17,11 @@ public function toArray(Request $request): array
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
'users' => UserResource::collection($this->users),
|
||||
'created_at' => $this->created_at,
|
||||
'updated_at' => $this->updated_at,
|
||||
'created_at_by_timezone' => $this->created_at_by_timezone,
|
||||
'updated_at_by_timezone' => $this->updated_at_by_timezone,
|
||||
'users' => UserResource::collection(
|
||||
$this->whenLoaded('users')
|
||||
),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -24,8 +24,6 @@ public function toArray(Request $request): array
|
||||
'is_remote' => $this->is_remote,
|
||||
'created_at' => $this->created_at,
|
||||
'updated_at' => $this->updated_at,
|
||||
'created_at_by_timezone' => $this->created_at_by_timezone,
|
||||
'updated_at_by_timezone' => $this->updated_at_by_timezone,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -22,8 +22,6 @@ public function toArray(Request $request): array
|
||||
'provider' => $this->provider,
|
||||
'created_at' => $this->created_at,
|
||||
'updated_at' => $this->updated_at,
|
||||
'created_at_by_timezone' => $this->created_at_by_timezone,
|
||||
'updated_at_by_timezone' => $this->updated_at_by_timezone,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -41,8 +41,6 @@ public function toArray(Request $request): array
|
||||
'status_color' => $this->getStatusColor(),
|
||||
'created_at' => $this->created_at,
|
||||
'updated_at' => $this->updated_at,
|
||||
'created_at_by_timezone' => $this->created_at_by_timezone,
|
||||
'updated_at_by_timezone' => $this->updated_at_by_timezone,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -18,8 +18,10 @@ public function toArray(Request $request): array
|
||||
'id' => $this->id,
|
||||
'name' => $this->name,
|
||||
'email' => $this->email,
|
||||
'role' => $this->role,
|
||||
'created_at' => $this->created_at,
|
||||
'updated_at' => $this->updated_at,
|
||||
'projects' => ProjectResource::collection($this->whenLoaded('projects')),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user