You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running the php please sc:switch-to-database command to Swtich to a database, we got the following errors.
Exception
The HasRunwayResource trait is missing from the [DoubleThreeDigital\SimpleCommerce\Customers\CustomerModel] model.
at vendor/doublethreedigital/runway/src/Runway.php:27
23▕ $handle = $config['handle'];
24▕ }
25▕
26▕ if (! in_array(Traits\HasRunwayResource::class, class_uses_recursive($model))) {
➜ 27▕ throw new \Exception(__('The HasRunwayResource trait is missing from the [:model] model.', ['model' => $model]));
28▕ }
29▕
30▕ if (! isset($config['blueprint'])) {
31▕ throw new \Exception(__('The [:model] model is missing a blueprint.', ['model' => $model]));
+12 vendor frames
13 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
Exception
The HasRunwayResource trait is missing from the [DoubleThreeDigital\SimpleCommerce\Orders\OrderModel] model.
at vendor/doublethreedigital/runway/src/Runway.php:27
23▕ $handle = $config['handle'];
24▕ }
25▕
26▕ if (! in_array(Traits\HasRunwayResource::class, class_uses_recursive($model))) {
➜ 27▕ throw new \Exception(__('The HasRunwayResource trait is missing from the [:model] model.', ['model' => $model]));
28▕ }
29▕
30▕ if (! isset($config['blueprint'])) {
31▕ throw new \Exception(__('The [:model] model is missing a blueprint.', ['model' => $model]));
+12 vendor frames
13 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
We fixed both issues by adding the trait in the vendor package, after this we where able to continue and use simple commerce with a database.
Steps to reproduce
Fresh installation of Statamic and Simple Commerce, running on laravel sail
Create some products, and 1 order
Decided to switch to a database, so we ran the php please sc:switch-to-database command
Description
After running the
php please sc:switch-to-database
command to Swtich to a database, we got the following errors.We fixed both issues by adding the trait in the vendor package, after this we where able to continue and use simple commerce with a database.
Steps to reproduce
php please sc:switch-to-database
commandEnvironment
The text was updated successfully, but these errors were encountered: