diff --git a/packages/Webkul/Attribute/src/Models/Attribute.php b/packages/Webkul/Attribute/src/Models/Attribute.php index 79f929cb5..4018d5102 100755 --- a/packages/Webkul/Attribute/src/Models/Attribute.php +++ b/packages/Webkul/Attribute/src/Models/Attribute.php @@ -3,6 +3,7 @@ namespace Webkul\Attribute\Models; use Illuminate\Database\Eloquent\Builder; +use Illuminate\Database\Eloquent\Factories\Factory; use Webkul\Core\Eloquent\TranslatableModel; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -61,9 +62,9 @@ class Attribute extends TranslatableModel implements AttributeContract /** * Create a new factory instance for the model * - * @return AttributeFactory + * @return Factory */ - protected static function newFactory(): AttributeFactory + protected static function newFactory(): Factory { return AttributeFactory::new(); } diff --git a/packages/Webkul/Attribute/src/Models/AttributeFamily.php b/packages/Webkul/Attribute/src/Models/AttributeFamily.php index 65fcc3b61..236683353 100755 --- a/packages/Webkul/Attribute/src/Models/AttributeFamily.php +++ b/packages/Webkul/Attribute/src/Models/AttributeFamily.php @@ -2,6 +2,7 @@ namespace Webkul\Attribute\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Product\Models\ProductProxy; use Illuminate\Database\Eloquent\Relations\HasMany; @@ -82,7 +83,12 @@ class AttributeFamily extends Model implements AttributeFamilyContract return $this->hasMany(ProductProxy::modelClass()); } - protected static function newFactory(): AttributeFamilyFactory + /** + * Create a new factory instance for the model + * + * @return Factory + */ + protected static function newFactory(): Factory { return AttributeFamilyFactory::new(); } diff --git a/packages/Webkul/Attribute/src/Models/AttributeOption.php b/packages/Webkul/Attribute/src/Models/AttributeOption.php index d99cc8181..5847f24bf 100755 --- a/packages/Webkul/Attribute/src/Models/AttributeOption.php +++ b/packages/Webkul/Attribute/src/Models/AttributeOption.php @@ -2,6 +2,7 @@ namespace Webkul\Attribute\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Webkul\Core\Eloquent\TranslatableModel; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -51,7 +52,12 @@ class AttributeOption extends TranslatableModel implements AttributeOptionContra return $this->swatch_value_url(); } - protected static function newFactory(): AttributeOptionFactory + /** + * Create a new factory instance for the model + * + * @return Factory + */ + protected static function newFactory(): Factory { return AttributeOptionFactory::new(); } diff --git a/packages/Webkul/BookingProduct/src/Models/BookingProduct.php b/packages/Webkul/BookingProduct/src/Models/BookingProduct.php index 2f2d7520a..8026cc14f 100644 --- a/packages/Webkul/BookingProduct/src/Models/BookingProduct.php +++ b/packages/Webkul/BookingProduct/src/Models/BookingProduct.php @@ -2,6 +2,7 @@ namespace Webkul\BookingProduct\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Product\Models\ProductProxy; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -79,9 +80,9 @@ class BookingProduct extends Model implements BookingProductContract /** * Create a new factory instance for the model. * - * @return BookingProductFactory + * @return Factory */ - protected static function newFactory(): BookingProductFactory + protected static function newFactory(): Factory { return BookingProductFactory::new(); } diff --git a/packages/Webkul/BookingProduct/src/Models/BookingProductEventTicket.php b/packages/Webkul/BookingProduct/src/Models/BookingProductEventTicket.php index b98066959..82b02b04c 100644 --- a/packages/Webkul/BookingProduct/src/Models/BookingProductEventTicket.php +++ b/packages/Webkul/BookingProduct/src/Models/BookingProductEventTicket.php @@ -2,6 +2,7 @@ namespace Webkul\BookingProduct\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Webkul\Core\Eloquent\TranslatableModel; use Illuminate\Database\Eloquent\Factories\HasFactory; use Webkul\BookingProduct\Database\Factories\BookingProductEventTicketFactory; @@ -30,9 +31,9 @@ class BookingProductEventTicket extends TranslatableModel implements BookingProd /** * Create a new factory instance for the model. * - * @return BookingProductEventTicketFactory + * @return Factory */ - protected static function newFactory(): BookingProductEventTicketFactory + protected static function newFactory(): Factory { return BookingProductEventTicketFactory::new(); } diff --git a/packages/Webkul/CartRule/src/Models/CartRule.php b/packages/Webkul/CartRule/src/Models/CartRule.php index 78c324028..73136722b 100644 --- a/packages/Webkul/CartRule/src/Models/CartRule.php +++ b/packages/Webkul/CartRule/src/Models/CartRule.php @@ -2,6 +2,7 @@ namespace Webkul\CartRule\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Core\Database\Factories\CartRuleFactory; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -133,9 +134,9 @@ class CartRule extends Model implements CartRuleContract /** * Create a new factory instance for the model. * - * @return CartRuleFactory + * @return Factory */ - protected static function newFactory(): CartRuleFactory + protected static function newFactory(): Factory { return CartRuleFactory::new(); } diff --git a/packages/Webkul/CartRule/src/Models/CartRuleCoupon.php b/packages/Webkul/CartRule/src/Models/CartRuleCoupon.php index afad566af..05c25f01d 100644 --- a/packages/Webkul/CartRule/src/Models/CartRuleCoupon.php +++ b/packages/Webkul/CartRule/src/Models/CartRuleCoupon.php @@ -2,6 +2,7 @@ namespace Webkul\CartRule\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -30,7 +31,7 @@ class CartRuleCoupon extends Model implements CartRuleCouponContract { return $this->belongsTo(CartRuleProxy::modelClass()); } - + /** * Get the cart rule that owns the cart rule coupon. */ @@ -42,9 +43,9 @@ class CartRuleCoupon extends Model implements CartRuleCouponContract /** * Create a new factory instance for the model * - * @return CartRuleCouponFactory + * @return Factory */ - protected static function newFactory(): CartRuleCouponFactory + protected static function newFactory(): Factory { return CartRuleCouponFactory::new(); } diff --git a/packages/Webkul/Category/src/Models/Category.php b/packages/Webkul/Category/src/Models/Category.php index aa8c26722..86b99c603 100755 --- a/packages/Webkul/Category/src/Models/Category.php +++ b/packages/Webkul/Category/src/Models/Category.php @@ -2,6 +2,7 @@ namespace Webkul\Category\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Webkul\Core\Eloquent\TranslatableModel; use Kalnoy\Nestedset\NodeTrait; use Illuminate\Support\Facades\Storage; @@ -164,9 +165,9 @@ class Category extends TranslatableModel implements CategoryContract /** * Create a new factory instance for the model. * - * @return CategoryFactory + * @return Factory */ - protected static function newFactory(): CategoryFactory + protected static function newFactory(): Factory { return CategoryFactory::new(); } diff --git a/packages/Webkul/Checkout/src/Models/Cart.php b/packages/Webkul/Checkout/src/Models/Cart.php index 09f33b416..7e0b7f037 100755 --- a/packages/Webkul/Checkout/src/Models/Cart.php +++ b/packages/Webkul/Checkout/src/Models/Cart.php @@ -2,6 +2,7 @@ namespace Webkul\Checkout\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Checkout\Contracts\Cart as CartContract; use Webkul\Checkout\Database\Factories\CartFactory; @@ -203,9 +204,9 @@ class Cart extends Model implements CartContract /** * Create a new factory instance for the model * - * @return CartFactory + * @return Factory */ - protected static function newFactory(): CartFactory + protected static function newFactory(): Factory { return CartFactory::new(); } diff --git a/packages/Webkul/Checkout/src/Models/CartAddress.php b/packages/Webkul/Checkout/src/Models/CartAddress.php index c7b26bf47..57af48cd2 100755 --- a/packages/Webkul/Checkout/src/Models/CartAddress.php +++ b/packages/Webkul/Checkout/src/Models/CartAddress.php @@ -3,6 +3,7 @@ namespace Webkul\Checkout\Models; use Illuminate\Database\Eloquent\Builder; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -70,9 +71,9 @@ class CartAddress extends Address implements CartAddressContract /** * Create a new factory instance for the model * - * @return CartAddressFactory + * @return Factory */ - protected static function newFactory(): CartAddressFactory + protected static function newFactory(): Factory { return CartAddressFactory::new(); } diff --git a/packages/Webkul/Checkout/src/Models/CartItem.php b/packages/Webkul/Checkout/src/Models/CartItem.php index f2da97ccb..3c190fdd3 100755 --- a/packages/Webkul/Checkout/src/Models/CartItem.php +++ b/packages/Webkul/Checkout/src/Models/CartItem.php @@ -2,6 +2,7 @@ namespace Webkul\Checkout\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Product\Models\ProductProxy; use Webkul\Product\Models\ProductFlatProxy; @@ -86,9 +87,9 @@ class CartItem extends Model implements CartItemContract /** * Create a new factory instance for the model * - * @return CartItemFactory + * @return Factory */ - protected static function newFactory(): CartItemFactory + protected static function newFactory(): Factory { return CartItemFactory::new(); } diff --git a/packages/Webkul/Checkout/src/Models/CartPayment.php b/packages/Webkul/Checkout/src/Models/CartPayment.php index f518fed58..c4b3ab8e4 100755 --- a/packages/Webkul/Checkout/src/Models/CartPayment.php +++ b/packages/Webkul/Checkout/src/Models/CartPayment.php @@ -2,6 +2,7 @@ namespace Webkul\Checkout\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; use Webkul\Checkout\Database\Factories\CartPaymentFactory; @@ -16,9 +17,9 @@ class CartPayment extends Model implements CartPaymentContract /** * Create a new factory instance for the model * - * @return CartPaymentFactory + * @return Factory */ - protected static function newFactory(): CartPaymentFactory + protected static function newFactory(): Factory { return CartPaymentFactory::new(); } diff --git a/packages/Webkul/Core/src/Models/Channel.php b/packages/Webkul/Core/src/Models/Channel.php index 8a7217955..b31242bb8 100755 --- a/packages/Webkul/Core/src/Models/Channel.php +++ b/packages/Webkul/Core/src/Models/Channel.php @@ -2,6 +2,7 @@ namespace Webkul\Core\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Facades\Storage; use Webkul\Category\Models\CategoryProxy; use Webkul\Core\Eloquent\TranslatableModel; @@ -133,9 +134,9 @@ class Channel extends TranslatableModel implements ChannelContract /** * Create a new factory instance for the model * - * @return ChannelFactory + * @return Factory */ - protected static function newFactory(): ChannelFactory + protected static function newFactory(): Factory { return ChannelFactory::new(); } diff --git a/packages/Webkul/Core/src/Models/Currency.php b/packages/Webkul/Core/src/Models/Currency.php index 1e3db0e9d..646f4e36c 100755 --- a/packages/Webkul/Core/src/Models/Currency.php +++ b/packages/Webkul/Core/src/Models/Currency.php @@ -2,6 +2,7 @@ namespace Webkul\Core\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasOne; use Webkul\Core\Database\Factories\CurrencyFactory; @@ -46,9 +47,9 @@ class Currency extends Model implements CurrencyContract /** * Create a new factory instance for the model. * - * @return CurrencyFactory + * @return Factory */ - protected static function newFactory(): CurrencyFactory + protected static function newFactory(): Factory { return CurrencyFactory::new(); } diff --git a/packages/Webkul/Core/src/Models/Locale.php b/packages/Webkul/Core/src/Models/Locale.php index 7814bdd94..11d81d9f0 100755 --- a/packages/Webkul/Core/src/Models/Locale.php +++ b/packages/Webkul/Core/src/Models/Locale.php @@ -2,6 +2,7 @@ namespace Webkul\Core\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Core\Database\Factories\LocaleFactory; use Webkul\Core\Contracts\Locale as LocaleContract; @@ -25,9 +26,9 @@ class Locale extends Model implements LocaleContract /** * Create a new factory instance for the model. * - * @return LocaleFactory + * @return Factory */ - protected static function newFactory(): LocaleFactory + protected static function newFactory(): Factory { return LocaleFactory::new(); } diff --git a/packages/Webkul/Core/src/Models/SubscribersList.php b/packages/Webkul/Core/src/Models/SubscribersList.php index 2cbbb7ef8..0ee1ada93 100755 --- a/packages/Webkul/Core/src/Models/SubscribersList.php +++ b/packages/Webkul/Core/src/Models/SubscribersList.php @@ -2,6 +2,7 @@ namespace Webkul\Core\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Customer\Models\CustomerProxy; use Illuminate\Database\Eloquent\Relations\BelongsTo; @@ -42,9 +43,9 @@ class SubscribersList extends Model implements SubscribersListContract /** * Create a new factory instance for the model. * - * @return SubscriberListFactory + * @return Factory */ - protected static function newFactory(): SubscriberListFactory + protected static function newFactory(): Factory { return SubscriberListFactory::new(); } diff --git a/packages/Webkul/Customer/src/Models/CustomerAddress.php b/packages/Webkul/Customer/src/Models/CustomerAddress.php index e84eb6ee3..439df6e90 100755 --- a/packages/Webkul/Customer/src/Models/CustomerAddress.php +++ b/packages/Webkul/Customer/src/Models/CustomerAddress.php @@ -3,6 +3,7 @@ namespace Webkul\Customer\Models; use Illuminate\Database\Eloquent\Builder; +use Illuminate\Database\Eloquent\Factories\Factory; use Webkul\Core\Models\Address; use Illuminate\Database\Eloquent\Factories\HasFactory; use Webkul\Customer\Database\Factories\CustomerAddressFactory; @@ -38,9 +39,9 @@ class CustomerAddress extends Address implements CustomerAddressContract /** * Create a new factory instance for the model * - * @return CustomerAddressFactory + * @return Factory */ - protected static function newFactory(): CustomerAddressFactory + protected static function newFactory(): Factory { return CustomerAddressFactory::new(); } diff --git a/packages/Webkul/Customer/src/Models/CustomerGroup.php b/packages/Webkul/Customer/src/Models/CustomerGroup.php index 421e72dcd..5c7b7d29d 100755 --- a/packages/Webkul/Customer/src/Models/CustomerGroup.php +++ b/packages/Webkul/Customer/src/Models/CustomerGroup.php @@ -2,6 +2,7 @@ namespace Webkul\Customer\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -31,9 +32,9 @@ class CustomerGroup extends Model implements CustomerGroupContract /** * Create a new factory instance for the model * - * @return CustomerGroupFactory + * @return Factory */ - protected static function newFactory(): CustomerGroupFactory + protected static function newFactory(): Factory { return CustomerGroupFactory::new(); } diff --git a/packages/Webkul/Inventory/src/Models/InventorySource.php b/packages/Webkul/Inventory/src/Models/InventorySource.php index 05834f972..9b3d1924b 100755 --- a/packages/Webkul/Inventory/src/Models/InventorySource.php +++ b/packages/Webkul/Inventory/src/Models/InventorySource.php @@ -2,6 +2,7 @@ namespace Webkul\Inventory\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; use Webkul\Inventory\Database\Factories\InventorySourceFactory; @@ -16,9 +17,9 @@ class InventorySource extends Model implements InventorySourceContract /** * Create a new factory instance for the model. * - * @return InventorySourceFactory + * @return Factory */ - protected static function newFactory(): InventorySourceFactory + protected static function newFactory(): Factory { return InventorySourceFactory::new(); } diff --git a/packages/Webkul/Product/src/Models/Product.php b/packages/Webkul/Product/src/Models/Product.php index 1d8af04f3..ff3143d61 100755 --- a/packages/Webkul/Product/src/Models/Product.php +++ b/packages/Webkul/Product/src/Models/Product.php @@ -3,6 +3,7 @@ namespace Webkul\Product\Models; use Exception; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Collection; use Illuminate\Database\Eloquent\Model; use Webkul\Attribute\Models\AttributeFamilyProxy; @@ -534,9 +535,9 @@ class Product extends Model implements ProductContract /** * Create a new factory instance for the model. * - * @return ProductFactory + * @return Factory */ - protected static function newFactory(): ProductFactory + protected static function newFactory(): Factory { return ProductFactory::new(); } diff --git a/packages/Webkul/Product/src/Models/ProductAttributeValue.php b/packages/Webkul/Product/src/Models/ProductAttributeValue.php index f9ba4b709..54a056604 100755 --- a/packages/Webkul/Product/src/Models/ProductAttributeValue.php +++ b/packages/Webkul/Product/src/Models/ProductAttributeValue.php @@ -2,6 +2,7 @@ namespace Webkul\Product\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Attribute\Models\AttributeProxy; use Illuminate\Database\Eloquent\Relations\BelongsTo; @@ -77,9 +78,9 @@ class ProductAttributeValue extends Model implements ProductAttributeValueContra /** * Create a new factory instance for the model. * - * @return ProductAttributeValueFactory + * @return Factory */ - protected static function newFactory(): ProductAttributeValueFactory + protected static function newFactory(): Factory { return ProductAttributeValueFactory::new(); } diff --git a/packages/Webkul/Product/src/Models/ProductDownloadableLink.php b/packages/Webkul/Product/src/Models/ProductDownloadableLink.php index c02abc644..01f89fec6 100644 --- a/packages/Webkul/Product/src/Models/ProductDownloadableLink.php +++ b/packages/Webkul/Product/src/Models/ProductDownloadableLink.php @@ -2,6 +2,7 @@ namespace Webkul\Product\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Webkul\Core\Eloquent\TranslatableModel; use Illuminate\Support\Facades\Storage; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -93,9 +94,9 @@ class ProductDownloadableLink extends TranslatableModel implements ProductDownlo /** * Create a new factory instance for the model. * - * @return ProductDownloadableLinkFactory + * @return Factory */ - protected static function newFactory(): ProductDownloadableLinkFactory + protected static function newFactory(): Factory { return ProductDownloadableLinkFactory::new(); } diff --git a/packages/Webkul/Product/src/Models/ProductDownloadableLinkTranslation.php b/packages/Webkul/Product/src/Models/ProductDownloadableLinkTranslation.php index f630413dd..dee027731 100644 --- a/packages/Webkul/Product/src/Models/ProductDownloadableLinkTranslation.php +++ b/packages/Webkul/Product/src/Models/ProductDownloadableLinkTranslation.php @@ -2,6 +2,7 @@ namespace Webkul\Product\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; use Webkul\Product\Database\Factories\ProductDownloadableLinkTranslationFactory; @@ -18,9 +19,9 @@ class ProductDownloadableLinkTranslation extends Model implements ProductDownloa /** * Create a new factory instance for the model. * - * @return ProductDownloadableLinkTranslationFactory + * @return Factory */ - protected static function newFactory(): ProductDownloadableLinkTranslationFactory + protected static function newFactory(): Factory { return ProductDownloadableLinkTranslationFactory::new(); } diff --git a/packages/Webkul/Product/src/Models/ProductInventory.php b/packages/Webkul/Product/src/Models/ProductInventory.php index 9ab93a449..71656d089 100755 --- a/packages/Webkul/Product/src/Models/ProductInventory.php +++ b/packages/Webkul/Product/src/Models/ProductInventory.php @@ -2,6 +2,7 @@ namespace Webkul\Product\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Inventory\Models\InventorySourceProxy; use Illuminate\Database\Eloquent\Relations\BelongsTo; @@ -41,9 +42,9 @@ class ProductInventory extends Model implements ProductInventoryContract /** * Create a new factory instance for the model. * - * @return ProductInventoryFactory + * @return Factory */ - protected static function newFactory(): ProductInventoryFactory + protected static function newFactory(): Factory { return ProductInventoryFactory::new(); } diff --git a/packages/Webkul/Product/src/Models/ProductReview.php b/packages/Webkul/Product/src/Models/ProductReview.php index 70ee1b239..2c862c64f 100755 --- a/packages/Webkul/Product/src/Models/ProductReview.php +++ b/packages/Webkul/Product/src/Models/ProductReview.php @@ -2,6 +2,7 @@ namespace Webkul\Product\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Customer\Models\CustomerProxy; use Illuminate\Database\Eloquent\Relations\HasMany; @@ -51,9 +52,9 @@ class ProductReview extends Model implements ProductReviewContract /** * Create a new factory instance for the model. * - * @return ProductReviewFactory + * @return Factory */ - protected static function newFactory(): ProductReviewFactory + protected static function newFactory(): Factory { return ProductReviewFactory::new(); } diff --git a/packages/Webkul/Sales/src/Models/Invoice.php b/packages/Webkul/Sales/src/Models/Invoice.php index 7ae31dee6..23edd0764 100755 --- a/packages/Webkul/Sales/src/Models/Invoice.php +++ b/packages/Webkul/Sales/src/Models/Invoice.php @@ -2,6 +2,7 @@ namespace Webkul\Sales\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\MorphTo; use Illuminate\Database\Eloquent\Relations\HasMany; @@ -91,9 +92,9 @@ class Invoice extends Model implements InvoiceContract /** * Create a new factory instance for the model. * - * @return InvoiceFactory + * @return Factory */ - protected static function newFactory(): InvoiceFactory + protected static function newFactory(): Factory { return InvoiceFactory::new(); } diff --git a/packages/Webkul/Sales/src/Models/InvoiceItem.php b/packages/Webkul/Sales/src/Models/InvoiceItem.php index 9d7c26ff0..29671b478 100755 --- a/packages/Webkul/Sales/src/Models/InvoiceItem.php +++ b/packages/Webkul/Sales/src/Models/InvoiceItem.php @@ -2,6 +2,7 @@ namespace Webkul\Sales\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Webkul\Product\Type\AbstractType; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasOne; @@ -87,9 +88,9 @@ class InvoiceItem extends Model implements InvoiceItemContract /** * Create a new factory instance for the model. * - * @return InvoiceItemFactory + * @return Factory */ - protected static function newFactory(): InvoiceItemFactory + protected static function newFactory(): Factory { return InvoiceItemFactory::new(); } diff --git a/packages/Webkul/Sales/src/Models/Order.php b/packages/Webkul/Sales/src/Models/Order.php index 48595c687..fc763a998 100755 --- a/packages/Webkul/Sales/src/Models/Order.php +++ b/packages/Webkul/Sales/src/Models/Order.php @@ -2,6 +2,7 @@ namespace Webkul\Sales\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Webkul\Checkout\Models\CartProxy; use Illuminate\Database\Eloquent\Model; use Webkul\Sales\Contracts\Order as OrderContract; @@ -273,7 +274,7 @@ class Order extends Model implements OrderContract return false; } - + /** * Verify if a invoice is still unpaid * @@ -360,9 +361,9 @@ class Order extends Model implements OrderContract /** * Create a new factory instance for the model. * - * @return OrderFactory + * @return Factory */ - protected static function newFactory(): OrderFactory + protected static function newFactory(): Factory { return OrderFactory::new(); } diff --git a/packages/Webkul/Sales/src/Models/OrderAddress.php b/packages/Webkul/Sales/src/Models/OrderAddress.php index 6ba8197d5..cfd98f53c 100755 --- a/packages/Webkul/Sales/src/Models/OrderAddress.php +++ b/packages/Webkul/Sales/src/Models/OrderAddress.php @@ -2,6 +2,7 @@ namespace Webkul\Sales\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Webkul\Checkout\Models\CartAddress; use Webkul\Core\Models\Address; use Illuminate\Database\Eloquent\Relations\BelongsTo; @@ -73,9 +74,9 @@ class OrderAddress extends Address implements OrderAddressContract /** * Create a new factory instance for the model. * - * @return OrderAddressFactory + * @return Factory */ - protected static function newFactory(): OrderAddressFactory + protected static function newFactory(): Factory { return OrderAddressFactory::new(); } diff --git a/packages/Webkul/Sales/src/Models/OrderItem.php b/packages/Webkul/Sales/src/Models/OrderItem.php index 9feaaed6e..f938e0a95 100755 --- a/packages/Webkul/Sales/src/Models/OrderItem.php +++ b/packages/Webkul/Sales/src/Models/OrderItem.php @@ -2,6 +2,7 @@ namespace Webkul\Sales\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Webkul\Product\Type\AbstractType; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasOne; @@ -226,9 +227,9 @@ class OrderItem extends Model implements OrderItemContract /** * Create a new factory instance for the model. * - * @return OrderItemFactory + * @return Factory */ - protected static function newFactory(): OrderItemFactory + protected static function newFactory(): Factory { return OrderItemFactory::new(); } diff --git a/packages/Webkul/Sales/src/Models/OrderPayment.php b/packages/Webkul/Sales/src/Models/OrderPayment.php index 495013e1e..e600b0080 100755 --- a/packages/Webkul/Sales/src/Models/OrderPayment.php +++ b/packages/Webkul/Sales/src/Models/OrderPayment.php @@ -2,6 +2,7 @@ namespace Webkul\Sales\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; use Webkul\Sales\Database\Factories\OrderPaymentFactory; @@ -26,9 +27,9 @@ class OrderPayment extends Model implements OrderPaymentContract /** * Create a new factory instance for the model. * - * @return OrderPaymentFactory + * @return Factory */ - protected static function newFactory(): OrderPaymentFactory + protected static function newFactory(): Factory { return OrderPaymentFactory::new(); } diff --git a/packages/Webkul/Sales/src/Models/Refund.php b/packages/Webkul/Sales/src/Models/Refund.php index d40142607..6c70c9edd 100644 --- a/packages/Webkul/Sales/src/Models/Refund.php +++ b/packages/Webkul/Sales/src/Models/Refund.php @@ -2,6 +2,7 @@ namespace Webkul\Sales\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Sales\Database\Factories\RefundFactory; use Webkul\Sales\Contracts\Refund as RefundContract; @@ -74,9 +75,9 @@ class Refund extends Model implements RefundContract /** * Create a new factory instance for the model. * - * @return RefundFactory + * @return Factory */ - protected static function newFactory(): RefundFactory + protected static function newFactory(): Factory { return RefundFactory::new(); } diff --git a/packages/Webkul/Sales/src/Models/Shipment.php b/packages/Webkul/Sales/src/Models/Shipment.php index cf8233ec6..a20842960 100755 --- a/packages/Webkul/Sales/src/Models/Shipment.php +++ b/packages/Webkul/Sales/src/Models/Shipment.php @@ -2,6 +2,7 @@ namespace Webkul\Sales\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Inventory\Models\InventorySource; use Illuminate\Database\Eloquent\Relations\MorphTo; @@ -65,9 +66,9 @@ class Shipment extends Model implements ShipmentContract /** * Create a new factory instance for the model. * - * @return ShipmentFactory + * @return Factory */ - protected static function newFactory(): ShipmentFactory + protected static function newFactory(): Factory { return ShipmentFactory::new(); } diff --git a/packages/Webkul/Tax/src/Models/TaxCategory.php b/packages/Webkul/Tax/src/Models/TaxCategory.php index 7ef065252..97d262c79 100755 --- a/packages/Webkul/Tax/src/Models/TaxCategory.php +++ b/packages/Webkul/Tax/src/Models/TaxCategory.php @@ -2,6 +2,7 @@ namespace Webkul\Tax\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Tax\Database\Factories\TaxCategoryFactory; use Illuminate\Database\Eloquent\Factories\HasFactory; @@ -36,9 +37,9 @@ class TaxCategory extends Model implements TaxCategoryContract /** * Create a new factory instance for the model. * - * @return TaxCategoryFactory + * @return Factory */ - protected static function newFactory(): TaxCategoryFactory + protected static function newFactory(): Factory { return TaxCategoryFactory::new(); } diff --git a/packages/Webkul/Tax/src/Models/TaxMap.php b/packages/Webkul/Tax/src/Models/TaxMap.php index 650e6c07b..baae5e7b3 100755 --- a/packages/Webkul/Tax/src/Models/TaxMap.php +++ b/packages/Webkul/Tax/src/Models/TaxMap.php @@ -2,6 +2,7 @@ namespace Webkul\Tax\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Tax\Database\Factories\TaxMapFactory; use Webkul\Tax\Contracts\TaxMap as TaxMapContract; @@ -27,9 +28,9 @@ class TaxMap extends Model implements TaxMapContract /** * Create a new factory instance for the model. * - * @return TaxMapFactory + * @return Factory */ - protected static function newFactory(): TaxMapFactory + protected static function newFactory(): Factory { return TaxMapFactory::new(); } diff --git a/packages/Webkul/Tax/src/Models/TaxRate.php b/packages/Webkul/Tax/src/Models/TaxRate.php index 4e4b34b41..4044fa161 100755 --- a/packages/Webkul/Tax/src/Models/TaxRate.php +++ b/packages/Webkul/Tax/src/Models/TaxRate.php @@ -2,6 +2,7 @@ namespace Webkul\Tax\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; use Webkul\Tax\Database\Factories\TaxRateFactory; use Webkul\Tax\Contracts\TaxRate as TaxRateContract; @@ -39,9 +40,9 @@ class TaxRate extends Model implements TaxRateContract /** * Create a new factory instance for the model. * - * @return TaxRateFactory + * @return Factory */ - protected static function newFactory(): TaxRateFactory + protected static function newFactory(): Factory { return TaxRateFactory::new(); } diff --git a/packages/Webkul/User/src/Models/Admin.php b/packages/Webkul/User/src/Models/Admin.php index 50c414f04..59eb45dd4 100755 --- a/packages/Webkul/User/src/Models/Admin.php +++ b/packages/Webkul/User/src/Models/Admin.php @@ -2,6 +2,7 @@ namespace Webkul\User\Models; +use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; @@ -78,9 +79,9 @@ class Admin extends Authenticatable implements AdminContract, JWTSubject /** * Create a new factory instance for the model. * - * @return AdminFactory + * @return Factory */ - protected static function newFactory(): AdminFactory + protected static function newFactory(): Factory { return AdminFactory::new(); }