18 lines
351 B
PHP
18 lines
351 B
PHP
<?php
|
|
|
|
namespace Modules\Commerce\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
final class ProductVariant extends Model
|
|
{
|
|
protected $table = 'commerce_product_variants';
|
|
|
|
protected $guarded = [];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['price' => 'decimal:2', 'options' => 'array', 'is_active' => 'boolean'];
|
|
}
|
|
}
|