-
Notifications
You must be signed in to change notification settings - Fork 90
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description
im getting the following error when running the install command Target class [statamic.eloquent.blueprints.model] does not exist.
config:
<?php
return [
'connection' => env('STATAMIC_ELOQUENT_CONNECTION', ''),
'table_prefix' => env('STATAMIC_ELOQUENT_PREFIX', ''),
'asset_containers' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Assets\AssetContainerModel::class,
],
'assets' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Assets\AssetModel::class,
'asset' => \Statamic\Eloquent\Assets\Asset::class,
],
'blueprints' => [
'driver' => 'eloquent',
'model' => \Statamic\Eloquent\Fields\BlueprintModel::class,
'namespaces' => 'all',
],
'collections' => [
'driver' => 'eloquent',
'model' => \Statamic\Eloquent\Collections\CollectionModel::class,
'update_entry_order_queue' => 'default',
'update_entry_order_connection' => 'default',
],
'collection_trees' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Structures\TreeModel::class,
'tree' => \Statamic\Eloquent\Structures\CollectionTree::class,
],
'entries' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Entries\EntryModel::class,
'entry' => \Statamic\Eloquent\Entries\Entry::class,
'map_data_to_columns' => false,
],
'fieldsets' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Fields\FieldsetModel::class,
],
'forms' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Forms\FormModel::class,
],
'form_submissions' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Forms\SubmissionModel::class,
],
'global_sets' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Globals\GlobalSetModel::class,
],
'global_set_variables' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Globals\VariablesModel::class,
],
'navigations' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Structures\NavModel::class,
],
'navigation_trees' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Structures\TreeModel::class,
'tree' => \Statamic\Eloquent\Structures\NavTree::class,
],
'revisions' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Revisions\RevisionModel::class,
],
'taxonomies' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Taxonomies\TaxonomyModel::class,
],
'terms' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Taxonomies\TermModel::class,
],
'tokens' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Tokens\TokenModel::class,
],
'sites' => [
'driver' => 'file',
'model' => \Statamic\Eloquent\Sites\SiteModel::class,
],
];
How to reproduce
run the command in an existing app
Logs
[previous exception] [object] (ReflectionException(code: -1): Class \"statamic.eloquent.collections.model\" does not exist at /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Container/Container.php:1017)
[stacktrace]
#0 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Container/Container.php(1017): ReflectionClass->__construct('statamic.eloque...')
#1 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Container/Container.php(890): Illuminate\\Container\\Container->build('statamic.eloque...')
#2 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1077): Illuminate\\Container\\Container->resolve('statamic.eloque...', Array, true)
#3 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Container/Container.php(821): Illuminate\\Foundation\\Application->resolve('statamic.eloque...', Array)
#4 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1057): Illuminate\\Container\\Container->make('statamic.eloque...', Array)
#5 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(127): Illuminate\\Foundation\\Application->make('statamic.eloque...', Array)
#6 /Users/oliviaarents/Herd/otto/vendor/statamic/eloquent-driver/src/Collections/Collection.php(50): app('statamic.eloque...')
#7 /Users/oliviaarents/Herd/otto/vendor/statamic/eloquent-driver/src/Commands/ImportCollections.php(88): Statamic\\Eloquent\\Collections\\Collection::makeModelFromContract(Object(Statamic\\Entries\\Collection))
#8 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Console/Concerns/InteractsWithIO.php(265): Statamic\\Eloquent\\Commands\\ImportCollections->Statamic\\Eloquent\\Commands\\{closure}(Object(Statamic\\Entries\\Collection), Object(Symfony\\Component\\Console\\Helper\\ProgressBar), 0)
#9 /Users/oliviaarents/Herd/otto/vendor/statamic/eloquent-driver/src/Commands/ImportCollections.php(84): Illuminate\\Console\\Command->withProgressBar(Object(Illuminate\\Support\\Collection), Object(Closure))
#10 /Users/oliviaarents/Herd/otto/vendor/statamic/eloquent-driver/src/Commands/ImportCollections.php(46): Statamic\\Eloquent\\Commands\\ImportCollections->importCollections()
#11 /Users/oliviaarents/Herd/otto/vendor/statamic/eloquent-driver/src/Commands/ImportCollections.php(69): Statamic\\Eloquent\\Commands\\ImportCollections->Statamic\\Eloquent\\Commands\\{closure}()
#12 /Users/oliviaarents/Herd/otto/vendor/statamic/eloquent-driver/src/Commands/ImportCollections.php(45): Statamic\\Eloquent\\Commands\\ImportCollections->usingDefaultRepositories(Object(Closure))
#13 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Statamic\\Eloquent\\Commands\\ImportCollections->handle()
#14 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#15 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#16 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#17 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Container/Container.php(754): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#18 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\\Container\\Container->call(Array)
#19 /Users/oliviaarents/Herd/otto/vendor/symfony/console/Command/Command.php(318): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#20 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#21 /Users/oliviaarents/Herd/otto/vendor/symfony/console/Application.php(1092): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#22 /Users/oliviaarents/Herd/otto/vendor/symfony/console/Application.php(341): Symfony\\Component\\Console\\Application->doRunCommand(Object(Statamic\\Eloquent\\Commands\\ImportCollections), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#23 /Users/oliviaarents/Herd/otto/vendor/symfony/console/Application.php(192): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#24 /Users/oliviaarents/Herd/otto/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(197): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#25 /Users/oliviaarents/Herd/otto/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#26 {main}
"}
Environment
Environment
Application Name: Otto Work Force
Laravel Version: 12.17.0
PHP Version: 8.3.23
Composer Version: 2.8.9
Environment: local
Debug Mode: ENABLED
URL: ottoworkforce.com
Maintenance Mode: OFF
Timezone: UTC
Locale: en
Cache
Config: CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: NOT CACHED
Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file
Storage
public/storage: NOT LINKED
Livewire
Livewire: v3.6.3
Statamic
Addons: 11
Sites: 12 (Netherlands / Dutch, Netherlands / English, Netherlands / German, and 9 more)
Stache Watcher: Enabled
Static Caching: full
Version: 5.57.0 PRO
Statamic Addons
aerni/font-awesome: 3.0.2
appart/bard-classes: dev-development
aryehraber/statamic-captcha: 1.14.0
justbetter/statamic-image-optimize: 4.0.0
marcorieser/statamic-live-search: 3.0.0
marcorieser/statamic-livewire: 4.5.1
pecotamic/sitemap: 1.4.9
rias/statamic-link-it: 2.4.0
statamic/eloquent-driver: 4.30.0
statamic/seo-pro: 6.7.0
transformstudios/review: 5.1.0
Statamic Eloquent Driver
Asset Containers: file
Assets: file
Blueprints: eloquent
Collection Trees: file
Collections: file
Entries: file
Fieldsets: file
Form Submissions: file
Forms: file
Global Sets: file
Global Variables: file
Navigation Trees: file
Navigations: file
Revisions: file
Sites: file
Taxonomies: file
Terms: file
Tokens: file
Additional details
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working