diff --git a/database/factories/CartFactory.php b/database/factories/CartFactory.php index 8db69157..8d8caefe 100644 --- a/database/factories/CartFactory.php +++ b/database/factories/CartFactory.php @@ -15,6 +15,16 @@ class CartFactory extends Factory */ protected $model = Cart::class; + /** + * Get the name of the model that is generated by the factory. + * + * @return class-string<\Illuminate\Database\Eloquent\Model|TModel> + */ + public function modelName(): string + { + return $this->model::getProxiedClass(); + } + /** * Define the model's default state. */ diff --git a/database/factories/ItemFactory.php b/database/factories/ItemFactory.php index 713a9adf..51c3fbf7 100644 --- a/database/factories/ItemFactory.php +++ b/database/factories/ItemFactory.php @@ -14,6 +14,16 @@ class ItemFactory extends Factory */ protected $model = Item::class; + /** + * Get the name of the model that is generated by the factory. + * + * @return class-string<\Illuminate\Database\Eloquent\Model|TModel> + */ + public function modelName(): string + { + return $this->model::getProxiedClass(); + } + /** * Define the model's default state. */ diff --git a/database/factories/OrderFactory.php b/database/factories/OrderFactory.php index cd9d8ca5..694011c3 100644 --- a/database/factories/OrderFactory.php +++ b/database/factories/OrderFactory.php @@ -14,6 +14,16 @@ class OrderFactory extends Factory */ protected $model = Order::class; + /** + * Get the name of the model that is generated by the factory. + * + * @return class-string<\Illuminate\Database\Eloquent\Model|TModel> + */ + public function modelName(): string + { + return $this->model::getProxiedClass(); + } + /** * Define the model's default state. */ diff --git a/database/factories/ProductFactory.php b/database/factories/ProductFactory.php index 111f69ea..ec2105eb 100644 --- a/database/factories/ProductFactory.php +++ b/database/factories/ProductFactory.php @@ -17,6 +17,16 @@ class ProductFactory extends Factory */ protected $model = Product::class; + /** + * Get the name of the model that is generated by the factory. + * + * @return class-string<\Illuminate\Database\Eloquent\Model|TModel> + */ + public function modelName(): string + { + return $this->model::getProxiedClass(); + } + /** * Define the model's default state. */ diff --git a/database/factories/PropertyFactory.php b/database/factories/PropertyFactory.php index 74e5507b..794c3b6a 100644 --- a/database/factories/PropertyFactory.php +++ b/database/factories/PropertyFactory.php @@ -15,6 +15,16 @@ class PropertyFactory extends Factory */ protected $model = Property::class; + /** + * Get the name of the model that is generated by the factory. + * + * @return class-string<\Illuminate\Database\Eloquent\Model|TModel> + */ + public function modelName(): string + { + return $this->model::getProxiedClass(); + } + /** * Define the model's default state. */ diff --git a/database/factories/PropertyValueFactory.php b/database/factories/PropertyValueFactory.php index 3efa7103..e1b4488a 100644 --- a/database/factories/PropertyValueFactory.php +++ b/database/factories/PropertyValueFactory.php @@ -14,6 +14,16 @@ class PropertyValueFactory extends Factory */ protected $model = PropertyValue::class; + /** + * Get the name of the model that is generated by the factory. + * + * @return class-string<\Illuminate\Database\Eloquent\Model|TModel> + */ + public function modelName(): string + { + return $this->model::getProxiedClass(); + } + /** * Define the model's default state. */ diff --git a/database/factories/ShippingFactory.php b/database/factories/ShippingFactory.php index 147839a2..88b62092 100644 --- a/database/factories/ShippingFactory.php +++ b/database/factories/ShippingFactory.php @@ -15,6 +15,16 @@ class ShippingFactory extends Factory */ protected $model = Shipping::class; + /** + * Get the name of the model that is generated by the factory. + * + * @return class-string<\Illuminate\Database\Eloquent\Model|TModel> + */ + public function modelName(): string + { + return $this->model::getProxiedClass(); + } + /** * Define the model's default state. */ diff --git a/database/factories/TransactionFactory.php b/database/factories/TransactionFactory.php index d874fcb2..dd822004 100644 --- a/database/factories/TransactionFactory.php +++ b/database/factories/TransactionFactory.php @@ -15,6 +15,16 @@ class TransactionFactory extends Factory */ protected $model = Transaction::class; + /** + * Get the name of the model that is generated by the factory. + * + * @return class-string<\Illuminate\Database\Eloquent\Model|TModel> + */ + public function modelName(): string + { + return $this->model::getProxiedClass(); + } + /** * Define the model's default state. */ diff --git a/database/factories/VariantFactory.php b/database/factories/VariantFactory.php index da461109..c15761a0 100644 --- a/database/factories/VariantFactory.php +++ b/database/factories/VariantFactory.php @@ -16,6 +16,16 @@ class VariantFactory extends Factory */ protected $model = Variant::class; + /** + * Get the name of the model that is generated by the factory. + * + * @return class-string<\Illuminate\Database\Eloquent\Model|TModel> + */ + public function modelName(): string + { + return $this->model::getProxiedClass(); + } + /** * Define the model's default state. */