$this->id, 'name' => $this->name, 'avatar'=> $this->avatar, 'department' => $this->department, 'phone' => $this->phone, 'status' => $this->status, 'is_enable'=> $this->is_enable, 'bases' => AgriculturalBaseResource::collection($this->whenload('bases')), ]; } }