Files
boursecu_server/app/Models/Category.php
T

29 lines
529 B
PHP
Raw Normal View History

2026-06-11 22:08:47 +03:30
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $table = 'categories';
protected $fillable = [
'name',
'active',
2026-06-13 11:17:32 +03:30
'show_in_filter',
'show_in_select',
'sort_order',
2026-06-11 22:08:47 +03:30
];
const CREATED_AT = 'created_at';
const UPDATED_AT = null;
protected $casts = [
'active' => 'boolean',
2026-06-13 11:17:32 +03:30
'show_in_filter' => 'boolean',
'show_in_select' => 'boolean',
'sort_order' => 'integer',
2026-06-11 22:08:47 +03:30
];
}