hasOne('App\Models\Department', 'id', 'department_id'); } public function created_by_info(){ return $this->hasOne('App\Models\Account', 'id', 'created_by'); } public function modified_by_info(){ return $this->hasOne('App\Models\Account', 'id', 'modified_by'); } }