feat(category): implement category configuration management with sorting and validation
This commit is contained in:
@@ -19,6 +19,7 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
'is_enabled',
|
||||
'banner_id',
|
||||
'banner_enabled',
|
||||
'sort_order',
|
||||
])]
|
||||
class Category extends Model
|
||||
{
|
||||
@@ -41,6 +42,7 @@ class Category extends Model
|
||||
'is_enabled' => 'boolean',
|
||||
'banner_id' => 'integer',
|
||||
'banner_enabled' => 'boolean',
|
||||
'sort_order' => 'integer',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user