mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
chore: bump scout 11.x (#1152)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user