chore: bump scout 11.x (#1152)

This commit is contained in:
Kyrch
2026-04-03 14:41:35 -03:00
committed by GitHub
parent 4f61a86638
commit b6d42e21b4
4 changed files with 378 additions and 336 deletions
+14
View File
@@ -44,4 +44,18 @@ abstract class BaseModel extends Model implements HasSubtitle, Nameable
$this->setConnection(Config::get($connectionKey));
}
}
// Temporary fix for Laravel 13.
public function newCollection(array $models = [])
{
$collectionClass = static::$collectionClass;
$collection = new $collectionClass($models);
if (Model::isAutomaticallyEagerLoadingRelationships()) {
$collection->withRelationshipAutoloading();
}
return $collection;
}
}