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