This commit is contained in:
Romulus21
2024-04-01 20:16:04 +02:00
parent 73a5cd4e2f
commit a172cdeb37
5 changed files with 53 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ class TimeTrackerController extends Controller
*/
public function show(TimeTracker $timeTracker)
{
//
return response()->json(new TimeTrackerResource($timeTracker->load('toDo')));
}
/**

View File

@@ -19,7 +19,7 @@ class ToDoResource extends JsonResource
'user_id' => $this->user_id,
'name' => $this->name,
'description' => $this->description,
'checked' => $this->checked,
'checked' => $this->checked?->format('Y-m-d H:i:s'),
'duration' => $this->duration,
];
}