hasOne('App\Model\StaffDetail','_id','_id'); } public function compound() { return $this->hasMany('App\Model\Module\Compound','dikeluarkan','no_badan'); } public function confidentialfile() { return $this->hasMany('App\Model\Module\ConfidentialFile','penguatkuasa','no_badan'); } public function tracklocation(){ return $this->hasMany('App\Model\Module\TrackLocation'); } public function currentlocation(){ return $this->hasOne('App\Model\Module\CurrentLocation'); } public function templatenotice(){ return $this->hasMany('App\Model\Module\TemplateNotice'); } public function notification() { return $this->hasMany('App\Model\Module\Notification'); } public function register_id(){ return $this->hasMany('App\Model\Module\FirebaseFcmToken'); } }