You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a morphTo relation with withoutGlobalScopes and eager loading:
/** * The relations to eager load on every query. * * @var array */protected$with = ['user', 'auditable'];
/** * Get all of the auditable models. * * @return \Illuminate\Database\Eloquent\Relations\MorphTo */publicfunctionauditable()
{
return$this->morphTo()->withoutGlobalScopes();
}
But withoutGlobalScopes isn't applied unless I use lazy loading.
Description:
I have a morphTo relation with
withoutGlobalScopes
and eager loading:But
withoutGlobalScopes
isn't applied unless I use lazy loading.#18052
The text was updated successfully, but these errors were encountered: