Replies: 1 comment 1 reply
-
|
@MatthesSt i don't think there is any specific reason why
public function user(): BelongsTo
{
return $this->belongsTo(User::class)->withTrashed();
}the issue seems to be only with the type definitions / IDE support. laravel handles it correctly at runtime, but static analysis tools don't know that maybe |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any reason why the morphTo relation is the only relation which type includes the withTrashed() scope even though all relations can apply the scope
Beta Was this translation helpful? Give feedback.
All reactions