style updates
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Commerce\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
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']; }
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['price' => 'decimal:2', 'options' => 'array', 'is_active' => 'boolean'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user