whereType($type); } public function user(): BelongsTo { return $this->belongsTo(User::class); } }