- Fix code style.
This commit is contained in:
parent
7a94b5233e
commit
2ab4873e5c
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
@ -10,4 +11,14 @@
|
|||
| your application. Factories provide a convenient way to generate new
|
||||
| model instances for testing / seeding your application's database.
|
||||
|
|
||||
*/
|
||||
*/
|
||||
|
||||
class UserFactory extends \Illuminate\Database\Eloquent\Factories\Factory
|
||||
{
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -6,10 +6,12 @@ use Illuminate\Http\Resources\Json\JsonResource;
|
|||
|
||||
class Attribute extends JsonResource
|
||||
{
|
||||
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @param \Illuminate\Http\Request
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($request)
|
||||
|
|
@ -25,4 +27,5 @@ class Attribute extends JsonResource
|
|||
'updated_at' => $this->updated_at,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -6,10 +6,12 @@ use Illuminate\Http\Resources\Json\JsonResource;
|
|||
|
||||
class AttributeOption extends JsonResource
|
||||
{
|
||||
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @param \Illuminate\Http\Request
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($request)
|
||||
|
|
@ -18,7 +20,8 @@ class AttributeOption extends JsonResource
|
|||
'id' => $this->id,
|
||||
'admin_name' => $this->admin_name,
|
||||
'label' => $this->label,
|
||||
'swatch_value' => $this->swatch_value
|
||||
'swatch_value' => $this->swatch_value,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class AttributeFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -140,5 +139,4 @@ class AttributeFactory extends Factory
|
|||
];
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class AttributeFamilyFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -30,5 +29,4 @@ class AttributeFamilyFactory extends Factory
|
|||
'status' => 0,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -8,7 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class AttributeOptionFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -30,5 +29,4 @@ class AttributeOptionFactory extends Factory
|
|||
'swatch_value' => null,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -11,7 +11,6 @@ use Webkul\Attribute\Contracts\Attribute as AttributeContract;
|
|||
|
||||
class Attribute extends TranslatableModel implements AttributeContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public $translatedAttributes = ['name'];
|
||||
|
|
@ -68,5 +67,4 @@ class Attribute extends TranslatableModel implements AttributeContract
|
|||
{
|
||||
return AttributeFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -11,7 +11,6 @@ use Webkul\Attribute\Contracts\AttributeFamily as AttributeFamilyContract;
|
|||
|
||||
class AttributeFamily extends Model implements AttributeFamilyContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public $timestamps = false;
|
||||
|
|
@ -87,5 +86,4 @@ class AttributeFamily extends Model implements AttributeFamilyContract
|
|||
{
|
||||
return AttributeFamilyFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2,9 +2,7 @@
|
|||
|
||||
namespace Webkul\Attribute\Models;
|
||||
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Webkul\Core\Eloquent\TranslatableModel;
|
||||
use Illuminate\Testing\Fluent\Concerns\Has;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Webkul\Attribute\Database\Factories\AttributeOptionFactory;
|
||||
|
|
@ -12,7 +10,6 @@ use Webkul\Attribute\Contracts\AttributeOption as AttributeOptionContract;
|
|||
|
||||
class AttributeOption extends TranslatableModel implements AttributeOptionContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public $timestamps = false;
|
||||
|
|
@ -40,7 +37,7 @@ class AttributeOption extends TranslatableModel implements AttributeOptionContra
|
|||
public function swatch_value_url()
|
||||
{
|
||||
if ($this->swatch_value && $this->attribute->swatch_type == 'image') {
|
||||
return url('cache/small/'.$this->swatch_value);
|
||||
return url('cache/small/' . $this->swatch_value);
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
@ -58,5 +55,4 @@ class AttributeOption extends TranslatableModel implements AttributeOptionContra
|
|||
{
|
||||
return AttributeOptionFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -8,7 +8,6 @@ use Webkul\BookingProduct\Models\BookingProductEventTicket;
|
|||
|
||||
class BookingProductEventTicketFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -29,5 +28,4 @@ class BookingProductEventTicketFactory extends Factory
|
|||
'booking_product_id' => BookingProduct::factory(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class BookingProductFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -34,5 +33,4 @@ class BookingProductFactory extends Factory
|
|||
'product_id' => Product::factory(['type' => 'booking']),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -3,14 +3,12 @@
|
|||
namespace Webkul\BookingProduct\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Webkul\Product\Models\ProductProxy;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Webkul\BookingProduct\Database\Factories\BookingProductFactory;
|
||||
use Webkul\BookingProduct\Contracts\BookingProduct as BookingProductContract;
|
||||
|
||||
class BookingProduct extends Model implements BookingProductContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
|
|
@ -86,5 +84,4 @@ class BookingProduct extends Model implements BookingProductContract
|
|||
{
|
||||
return BookingProductFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Webkul\BookingProduct\Contracts\BookingProductEventTicket as BookingProductE
|
|||
|
||||
class BookingProductEventTicket extends TranslatableModel implements BookingProductEventTicketContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public $timestamps = false;
|
||||
|
|
@ -37,5 +36,4 @@ class BookingProductEventTicket extends TranslatableModel implements BookingProd
|
|||
{
|
||||
return BookingProductEventTicketFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -11,20 +11,19 @@ class BookingProductServiceProvider extends ServiceProvider
|
|||
* Bootstrap services.
|
||||
*
|
||||
* @return void
|
||||
* @throws \Illuminate\Contracts\Container\BindingResolutionException
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
$this->loadRoutesFrom(__DIR__.'/../Http/front-routes.php');
|
||||
$this->loadRoutesFrom(__DIR__ . '/../Http/front-routes.php');
|
||||
|
||||
$this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
|
||||
$this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
|
||||
|
||||
$this->loadTranslationsFrom(__DIR__.'/../Resources/lang', 'bookingproduct');
|
||||
$this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'bookingproduct');
|
||||
|
||||
$this->loadViewsFrom(__DIR__.'/../Resources/views', 'bookingproduct');
|
||||
$this->loadViewsFrom(__DIR__ . '/../Resources/views', 'bookingproduct');
|
||||
|
||||
$this->publishes([
|
||||
__DIR__.'/../../publishable/assets' => public_path('themes/default/assets'),
|
||||
__DIR__ . '/../../publishable/assets' => public_path('themes/default/assets'),
|
||||
], 'public');
|
||||
|
||||
$this->app->register(EventServiceProvider::class);
|
||||
|
|
@ -37,7 +36,7 @@ class BookingProductServiceProvider extends ServiceProvider
|
|||
*/
|
||||
public function register(): void
|
||||
{
|
||||
$this->mergeConfigFrom(dirname(__DIR__).'/Config/product_types.php', 'product_types');
|
||||
$this->mergeConfigFrom(dirname(__DIR__) . '/Config/product_types.php', 'product_types');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -11,7 +11,6 @@ use Webkul\Customer\Models\CustomerGroupProxy;
|
|||
|
||||
class CartRule extends Model implements CartRuleContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
|
|
@ -140,5 +139,4 @@ class CartRule extends Model implements CartRuleContract
|
|||
{
|
||||
return CartRuleFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -10,7 +10,6 @@ use Webkul\CartRule\Contracts\CartRuleCoupon as CartRuleCouponContract;
|
|||
|
||||
class CartRuleCoupon extends Model implements CartRuleCouponContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
|
|
@ -41,5 +40,4 @@ class CartRuleCoupon extends Model implements CartRuleCouponContract
|
|||
{
|
||||
return CartRuleCouponFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CategoryFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -60,5 +59,4 @@ class CategoryFactory extends Factory
|
|||
];
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use Webkul\Product\Models\ProductProxy;
|
|||
*/
|
||||
class Category extends TranslatableModel implements CategoryContract
|
||||
{
|
||||
|
||||
use NodeTrait, HasFactory;
|
||||
|
||||
public $translatedAttributes = [
|
||||
|
|
@ -171,5 +170,4 @@ class Category extends TranslatableModel implements CategoryContract
|
|||
{
|
||||
return CategoryFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -8,7 +8,6 @@ use Webkul\Category\Observers\CategoryObserver;
|
|||
|
||||
class CategoryServiceProvider extends ServiceProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* Bootstrap services.
|
||||
*
|
||||
|
|
@ -16,9 +15,8 @@ class CategoryServiceProvider extends ServiceProvider
|
|||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
$this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');
|
||||
$this->loadMigrationsFrom(__DIR__ . '/../Database/Migrations');
|
||||
|
||||
CategoryProxy::observe(CategoryObserver::class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CartAddressFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -29,5 +28,4 @@ class CartAddressFactory extends Factory
|
|||
'address_type' => CartAddress::ADDRESS_TYPE_BILLING,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CartFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -54,6 +53,5 @@ class CartFactory extends Factory
|
|||
'updated_at' => $now,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CartItemFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -53,5 +52,4 @@ class CartItemFactory extends Factory
|
|||
'updated_at' => $now,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CartPaymentFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -30,7 +29,6 @@ class CartPaymentFactory extends Factory
|
|||
'updated_at' => $now,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||
|
||||
class Cart extends Model implements CartContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'cart';
|
||||
|
|
@ -193,9 +192,9 @@ class Cart extends Model implements CartContract
|
|||
*/
|
||||
public function checkMinimumOrder(): bool
|
||||
{
|
||||
$minimumOrderAmount = (float) (core()->getConfigData('sales.orderSettings.minimum-order.minimum_order_amount') ?? 0);
|
||||
$minimumOrderAmount = (float)(core()->getConfigData('sales.orderSettings.minimum-order.minimum_order_amount') ?? 0);
|
||||
|
||||
$cartBaseSubTotal = (float) $this->base_sub_total;
|
||||
$cartBaseSubTotal = (float)$this->base_sub_total;
|
||||
|
||||
return $cartBaseSubTotal >= $minimumOrderAmount;
|
||||
}
|
||||
|
|
@ -210,5 +209,4 @@ class Cart extends Model implements CartContract
|
|||
{
|
||||
return CartFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ use Webkul\Core\Models\Address;
|
|||
*/
|
||||
class CartAddress extends Address implements CartAddressContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public const ADDRESS_TYPE_SHIPPING = 'cart_shipping';
|
||||
|
|
@ -77,5 +76,4 @@ class CartAddress extends Address implements CartAddressContract
|
|||
{
|
||||
return CartAddressFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -15,7 +15,6 @@ use Webkul\Checkout\Contracts\CartItem as CartItemContract;
|
|||
|
||||
class CartItem extends Model implements CartItemContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'cart_items';
|
||||
|
|
@ -93,5 +92,4 @@ class CartItem extends Model implements CartItemContract
|
|||
{
|
||||
return CartItemFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ use Webkul\Checkout\Contracts\CartPayment as CartPaymentContract;
|
|||
|
||||
class CartPayment extends Model implements CartPaymentContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'cart_payment';
|
||||
|
|
@ -23,5 +22,4 @@ class CartPayment extends Model implements CartPaymentContract
|
|||
{
|
||||
return CartPaymentFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CartRuleCouponFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -33,5 +32,4 @@ class CartRuleCouponFactory extends Factory
|
|||
'cart_rule_id' => CartRule::factory(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CartRuleFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -45,5 +44,4 @@ class CartRuleFactory extends Factory
|
|||
'conditions' => null,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -11,7 +11,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class ChannelFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -46,5 +45,4 @@ class ChannelFactory extends Factory
|
|||
'home_seo' => json_encode($seoData, JSON_THROW_ON_ERROR),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -6,7 +6,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class ChannelInventorySourceFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -26,5 +25,4 @@ class ChannelInventorySourceFactory extends Factory
|
|||
'inventory_source_id' => 1,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CurrencyFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -28,5 +27,4 @@ class CurrencyFactory extends Factory
|
|||
'name' => $this->faker->word,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class LocaleFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -50,5 +49,4 @@ class LocaleFactory extends Factory
|
|||
];
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class SubscriberListFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -28,6 +27,5 @@ class SubscriberListFactory extends Factory
|
|||
'channel_id' => 1,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||
|
||||
class Channel extends TranslatableModel implements ChannelContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
|
|
@ -138,5 +137,4 @@ class Channel extends TranslatableModel implements ChannelContract
|
|||
{
|
||||
return ChannelFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -10,7 +10,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||
|
||||
class Currency extends Model implements CurrencyContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
|
|
@ -53,5 +52,4 @@ class Currency extends Model implements CurrencyContract
|
|||
{
|
||||
return CurrencyFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||
|
||||
class Locale extends Model implements LocaleContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
|
|
@ -32,5 +31,4 @@ class Locale extends Model implements LocaleContract
|
|||
{
|
||||
return LocaleFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ use Webkul\Core\Contracts\SubscribersList as SubscribersListContract;
|
|||
|
||||
class SubscribersList extends Model implements SubscribersListContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
|
|
@ -49,5 +48,4 @@ class SubscribersList extends Model implements SubscribersListContract
|
|||
{
|
||||
return SubscriberListFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CustomerAddressFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -46,7 +45,6 @@ class CustomerAddressFactory extends Factory
|
|||
'address_type' => CustomerAddress::ADDRESS_TYPE,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CustomerFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -72,5 +71,4 @@ class CustomerFactory extends Factory
|
|||
];
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class CustomerGroupFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -31,5 +30,4 @@ class CustomerGroupFactory extends Factory
|
|||
'code' => lcfirst($name),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -20,7 +20,6 @@ use Webkul\Customer\Database\Factories\CustomerAddressFactory;
|
|||
|
||||
class Customer extends Authenticatable implements CustomerContract, JWTSubject
|
||||
{
|
||||
|
||||
use Notifiable, HasFactory;
|
||||
|
||||
protected $table = 'customers';
|
||||
|
|
@ -53,7 +52,7 @@ class Customer extends Authenticatable implements CustomerContract, JWTSubject
|
|||
*/
|
||||
public function getNameAttribute(): string
|
||||
{
|
||||
return ucfirst($this->first_name).' '.ucfirst($this->last_name);
|
||||
return ucfirst($this->first_name) . ' ' . ucfirst($this->last_name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -194,5 +193,4 @@ class Customer extends Authenticatable implements CustomerContract, JWTSubject
|
|||
{
|
||||
return CustomerFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use Webkul\Customer\Contracts\CustomerAddress as CustomerAddressContract;
|
|||
|
||||
class CustomerAddress extends Address implements CustomerAddressContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public const ADDRESS_TYPE = 'customer';
|
||||
|
|
@ -45,5 +44,4 @@ class CustomerAddress extends Address implements CustomerAddressContract
|
|||
{
|
||||
return CustomerAddressFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ use Webkul\Customer\Contracts\CustomerGroup as CustomerGroupContract;
|
|||
|
||||
class CustomerGroup extends Model implements CustomerGroupContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'customer_groups';
|
||||
|
|
@ -37,5 +36,4 @@ class CustomerGroup extends Model implements CustomerGroupContract
|
|||
{
|
||||
return CustomerGroupFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class InventorySourceFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -42,5 +41,4 @@ class InventorySourceFactory extends Factory
|
|||
'updated_at' => $now,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ use Webkul\Inventory\Contracts\InventorySource as InventorySourceContract;
|
|||
|
||||
class InventorySource extends Model implements InventorySourceContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $guarded = ['_token'];
|
||||
|
|
@ -23,5 +22,4 @@ class InventorySource extends Model implements InventorySourceContract
|
|||
{
|
||||
return InventorySourceFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -8,7 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class ProductAttributeValueFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -29,5 +28,4 @@ class ProductAttributeValueFactory extends Factory
|
|||
'channel' => 'default',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -8,7 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class ProductDownloadableLinkFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -29,7 +28,7 @@ class ProductDownloadableLinkFactory extends Factory
|
|||
|
||||
return [
|
||||
'url' => '',
|
||||
'file' => $filepath.$filename,
|
||||
'file' => $filepath . $filename,
|
||||
'file_name' => $filename,
|
||||
'type' => 'file',
|
||||
'price' => 0.0000,
|
||||
|
|
@ -39,5 +38,4 @@ class ProductDownloadableLinkFactory extends Factory
|
|||
'updated_at' => $now,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use Webkul\Product\Models\ProductDownloadableLinkTranslation;
|
|||
|
||||
class ProductDownloadableLinkTranslationFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -29,5 +28,4 @@ class ProductDownloadableLinkTranslationFactory extends Factory
|
|||
'product_downloadable_link_id' => ProductDownloadableLink::factory(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class ProductFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -73,5 +72,4 @@ class ProductFactory extends Factory
|
|||
];
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class ProductInventoryFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -30,5 +29,4 @@ class ProductInventoryFactory extends Factory
|
|||
'inventory_source_id' => InventorySource::factory(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -8,7 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class ProductReviewFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -31,5 +30,4 @@ class ProductReviewFactory extends Factory
|
|||
'product_id' => Product::factory(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|||
|
||||
class Product extends Model implements ProductContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
|
|
@ -301,7 +300,7 @@ class Product extends Model implements ProductContract
|
|||
return $this->typeInstance;
|
||||
}
|
||||
|
||||
$this->typeInstance = app(config('product_types.'.$this->type.'.class'));
|
||||
$this->typeInstance = app(config('product_types.' . $this->type . '.class'));
|
||||
|
||||
if (!$this->typeInstance instanceof AbstractType) {
|
||||
throw new Exception("Please ensure the product type '{$this->type}' is configured in your application.");
|
||||
|
|
@ -540,5 +539,4 @@ class Product extends Model implements ProductContract
|
|||
{
|
||||
return ProductFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ use Webkul\Product\Contracts\ProductAttributeValue as ProductAttributeValueContr
|
|||
|
||||
class ProductAttributeValue extends Model implements ProductAttributeValueContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
|
|
@ -84,5 +83,4 @@ class ProductAttributeValue extends Model implements ProductAttributeValueContra
|
|||
{
|
||||
return ProductAttributeValueFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use Webkul\Product\Contracts\ProductDownloadableLink as ProductDownloadableLinkC
|
|||
|
||||
class ProductDownloadableLink extends TranslatableModel implements ProductDownloadableLinkContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public $translatedAttributes = ['title'];
|
||||
|
|
@ -100,5 +99,4 @@ class ProductDownloadableLink extends TranslatableModel implements ProductDownlo
|
|||
{
|
||||
return ProductDownloadableLinkFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Webkul\Product\Contracts\ProductDownloadableLinkTranslation as ProductDownlo
|
|||
|
||||
class ProductDownloadableLinkTranslation extends Model implements ProductDownloadableLinkTranslationContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public $timestamps = false;
|
||||
|
|
@ -25,5 +24,4 @@ class ProductDownloadableLinkTranslation extends Model implements ProductDownloa
|
|||
{
|
||||
return ProductDownloadableLinkTranslationFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -11,7 +11,6 @@ use Webkul\Product\Contracts\ProductInventory as ProductInventoryContract;
|
|||
|
||||
class ProductInventory extends Model implements ProductInventoryContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public $timestamps = false;
|
||||
|
|
@ -48,5 +47,4 @@ class ProductInventory extends Model implements ProductInventoryContract
|
|||
{
|
||||
return ProductInventoryFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -4,7 +4,6 @@ namespace Webkul\Product\Models;
|
|||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Webkul\Customer\Models\CustomerProxy;
|
||||
use Webkul\Product\Models\Product;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
|
@ -13,7 +12,6 @@ use Webkul\Product\Contracts\ProductReview as ProductReviewContract;
|
|||
|
||||
class ProductReview extends Model implements ProductReviewContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
|
|
@ -59,5 +57,4 @@ class ProductReview extends Model implements ProductReviewContract
|
|||
{
|
||||
return ProductReviewFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class InvoiceFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -92,5 +91,4 @@ class InvoiceFactory extends Factory
|
|||
];
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class InvoiceItemFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -50,5 +49,4 @@ class InvoiceItemFactory extends Factory
|
|||
'invoice_id' => Invoice::factory(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class OrderAddressFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -60,5 +59,4 @@ class OrderAddressFactory extends Factory
|
|||
];
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -10,7 +10,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class OrderFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -105,5 +104,4 @@ class OrderFactory extends Factory
|
|||
];
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class OrderItemFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -59,5 +58,4 @@ class OrderItemFactory extends Factory
|
|||
'product_type' => Product::class,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class OrderPaymentFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -26,6 +25,5 @@ class OrderPaymentFactory extends Factory
|
|||
'method' => 'cashondelivery',
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class RefundFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -27,6 +26,5 @@ class RefundFactory extends Factory
|
|||
'order_id' => Order::factory(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class ShipmentFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -34,6 +33,5 @@ class ShipmentFactory extends Factory
|
|||
'inventory_source_id' => InventorySource::factory(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||
|
||||
class Invoice extends Model implements InvoiceContract
|
||||
{
|
||||
|
||||
use PaymentTerm, HasFactory;
|
||||
|
||||
/**
|
||||
|
|
@ -97,5 +96,4 @@ class Invoice extends Model implements InvoiceContract
|
|||
{
|
||||
return InvoiceFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use Webkul\Sales\Contracts\InvoiceItem as InvoiceItemContract;
|
|||
|
||||
class InvoiceItem extends Model implements InvoiceItemContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $guarded = [
|
||||
|
|
@ -94,5 +93,4 @@ class InvoiceItem extends Model implements InvoiceItemContract
|
|||
{
|
||||
return InvoiceItemFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -10,7 +10,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||
|
||||
class Order extends Model implements OrderContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public const STATUS_PENDING = 'pending';
|
||||
|
|
@ -54,7 +53,7 @@ class Order extends Model implements OrderContract
|
|||
*/
|
||||
public function getCustomerFullNameAttribute(): string
|
||||
{
|
||||
return $this->customer_first_name.' '.$this->customer_last_name;
|
||||
return $this->customer_first_name . ' ' . $this->customer_last_name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -345,5 +344,4 @@ class Order extends Model implements OrderContract
|
|||
{
|
||||
return OrderFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ use Illuminate\Database\Eloquent\Builder;
|
|||
*/
|
||||
class OrderAddress extends Address implements OrderAddressContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
public const ADDRESS_TYPE_SHIPPING = 'order_shipping';
|
||||
|
|
@ -80,5 +79,4 @@ class OrderAddress extends Address implements OrderAddressContract
|
|||
{
|
||||
return OrderAddressFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -14,7 +14,6 @@ use Webkul\Sales\Contracts\OrderItem as OrderItemContract;
|
|||
|
||||
class OrderItem extends Model implements OrderItemContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $guarded = [
|
||||
|
|
@ -233,5 +232,4 @@ class OrderItem extends Model implements OrderItemContract
|
|||
{
|
||||
return OrderItemFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Webkul\Sales\Contracts\OrderPayment as OrderPaymentContract;
|
|||
|
||||
class OrderPayment extends Model implements OrderPaymentContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'order_payment';
|
||||
|
|
@ -33,5 +32,4 @@ class OrderPayment extends Model implements OrderPaymentContract
|
|||
{
|
||||
return OrderPaymentFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -12,7 +12,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||
|
||||
class Refund extends Model implements RefundContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $guarded = [
|
||||
|
|
@ -81,5 +80,4 @@ class Refund extends Model implements RefundContract
|
|||
{
|
||||
return RefundFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -13,7 +13,6 @@ use Webkul\Sales\Contracts\Shipment as ShipmentContract;
|
|||
|
||||
class Shipment extends Model implements ShipmentContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
protected $guarded = [
|
||||
|
|
@ -72,5 +71,4 @@ class Shipment extends Model implements ShipmentContract
|
|||
{
|
||||
return ShipmentFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class TaxCategoryFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -28,5 +27,4 @@ class TaxCategoryFactory extends Factory
|
|||
'description' => $this->faker->sentence(10),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class TaxMapFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -29,6 +28,5 @@ class TaxMapFactory extends Factory
|
|||
'tax_rate_id' => TaxRate::factory(),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\Factory;
|
|||
|
||||
class TaxRateFactory extends Factory
|
||||
{
|
||||
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
|
|
@ -33,5 +32,4 @@ class TaxRateFactory extends Factory
|
|||
'tax_rate' => $this->faker->randomFloat(2, 3, 25),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -10,7 +10,6 @@ use Webkul\Tax\Contracts\TaxCategory as TaxCategoryContract;
|
|||
|
||||
class TaxCategory extends Model implements TaxCategoryContract
|
||||
{
|
||||
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
|
|
@ -43,5 +42,4 @@ class TaxCategory extends Model implements TaxCategoryContract
|
|||
{
|
||||
return TaxCategoryFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -3,8 +3,6 @@
|
|||
namespace Webkul\Tax\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Webkul\Tax\Models\TaxCategory;
|
||||
use Webkul\Tax\Models\TaxRate;
|
||||
use Webkul\Tax\Database\Factories\TaxMapFactory;
|
||||
use Webkul\Tax\Contracts\TaxMap as TaxMapContract;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
|
@ -35,5 +33,4 @@ class TaxMap extends Model implements TaxMapContract
|
|||
{
|
||||
return TaxMapFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -3,7 +3,6 @@
|
|||
namespace Webkul\Tax\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Webkul\Tax\Models\TaxCategory;
|
||||
use Webkul\Tax\Database\Factories\TaxRateFactory;
|
||||
use Webkul\Tax\Contracts\TaxRate as TaxRateContract;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
|
@ -12,6 +11,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|||
class TaxRate extends Model implements TaxRateContract
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
|
|
@ -45,5 +45,4 @@ class TaxRate extends Model implements TaxRateContract
|
|||
{
|
||||
return TaxRateFactory::new();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue