hasOne(Role::class,'id','role_xid')->withDefault(); } public function appResource(){ return $this->hasOne(AppResourceAction::class,'id','app_resource_action_xid')->withDefault(); } }