append(static::class) ->__toString(); if (Config::has($connectionKey)) { $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; } }