belongsToMany(Docter::class); } public function offices(){ return $this->hasMany(Office::class,'org_id','id'); } }