public function scopeSearch(Builder $query, ?string $search = null): Builder 	{ 		return $search ? $query->whereHas('user', static function (object $query) use ($search): void { 			$query->search($search); 		}) : $query; 	}