*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'name' => $this->name, 'created_at' => $this->created_at->toDateTimeString(), 'updated_at' => $this->updated_at->toDateTimeString(), ]; } }