hasOne(Admin::class, 'id', 'created_by')->select('id', 'real_name as created_name'); } public function updateds(): \Illuminate\Database\Eloquent\Relations\HasOne { return $this->hasOne(Admin::class, 'id', 'updated_by')->select('id', 'real_name as updated_name'); } }