33 lines
581 B
PHP
33 lines
581 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Traits\HasUuid;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Product extends Model
|
|
{
|
|
use HasFactory, HasUuid;
|
|
|
|
protected array $uuidColumns = ['uuid'];
|
|
protected string $slugColumn = 'name';
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'slug',
|
|
'description',
|
|
'price',
|
|
'price_sale',
|
|
'billing_cycle',
|
|
'cpu',
|
|
'ram',
|
|
'gpu',
|
|
'disk',
|
|
'bandwidth',
|
|
'is_active',
|
|
'sort_order',
|
|
];
|
|
|
|
}
|