25 lines
409 B
PHP
25 lines
409 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Pricelist extends Model
|
|
{
|
|
protected $table = 'pricelist';
|
|
|
|
protected $fillable = [
|
|
'title',
|
|
'description',
|
|
'price',
|
|
'sort_order',
|
|
'is_active'
|
|
];
|
|
|
|
protected $casts = [
|
|
'price' => 'decimal:2',
|
|
'is_active' => 'boolean',
|
|
'sort_order' => 'integer'
|
|
];
|
|
}
|