mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
office365 integration
This commit is contained in:
1 parent
264ca10078
commit
e1712c8fcd
11 files changed
+551
-16
No files matched your search
@@ -10,26 +10,28 @@ class MasterTaskResource extends JsonResource
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
*
|
||||
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
|
||||
*/
|
||||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'name' => $this->title,
|
||||
'created_by' => $this->created_by,
|
||||
'description' => $this->description,
|
||||
'duration' => $this->estimated_time,
|
||||
'time_worked' => $this->tracked_time,
|
||||
'is_finished' => $this->is_finished,
|
||||
'starts_at' => $this->created_at,
|
||||
'deadline' => $this->deadline,
|
||||
'project_code' => ($this->project) ? $this->project->code . ' ' . $this->project->name : null,
|
||||
'team' => ($this->team) ?: null,
|
||||
'employees' => UserResource::collection($this->usersOutsideTeam),
|
||||
'subtasks' => SubTaskResource::collection($this->subtasks),
|
||||
'files' => AttachmentResource::collection($this->attachments),
|
||||
'color' => $this->color,
|
||||
'id' => $this->id,
|
||||
'name' => $this->title,
|
||||
'created_by' => $this->created_by,
|
||||
'description' => $this->description,
|
||||
'duration' => $this->estimated_time,
|
||||
'estimated_duration' => $this->pricequote_time,
|
||||
'time_worked' => $this->tracked_time,
|
||||
'is_finished' => $this->is_finished,
|
||||
'starts_at' => $this->created_at,
|
||||
'deadline' => $this->deadline,
|
||||
'project_code' => ($this->project) ? $this->project->code . ' ' . $this->project->name : null,
|
||||
'team' => ($this->team) ?: null,
|
||||
'employees' => UserResource::collection($this->usersOutsideTeam),
|
||||
'subtasks' => SubTaskResource::collection($this->subtasks),
|
||||
'files' => AttachmentResource::collection($this->attachments),
|
||||
'color' => $this->color,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user