hasOne('App\LatestModel\StaffDetail','_id','_id')->withTrashed(); } public function company() { return $this->belongsTo('App\LatestModel\Module\Company','company_id','_id'); } public function form() { return $this->hasMany('App\LatestModel\Module\Form','dealer_id','_id'); } public function workorder() { return $this->hasMany('App\LatestModel\Module\WorkOrder','installer_id','_id')->withTrashed(); } public function tracklocation(){ return $this->hasMany('App\LatestModel\Module\TrackLocation'); } public function currentlocation(){ return $this->hasOne('App\LatestModel\Module\CurrentLocation'); } public function notification() { return $this->hasMany('App\LatestModel\Module\Notification'); } }