public function empDetails(){ return $this->hasMany('App\EmpDetails','emp_id','personal_details.emp_id'); }