public function scopeSearch(object $query, ?string $search = null): Builder 	{ 		$search = preg_replace('/\s+/', '%', $search ?? ''); 		$search = $search ? '%' . $search . '%' : null;  		return $search ? $query->where('name', 'like', $search)->orWhere('surname', 'like', $search) : $query; 	}