25 lines
545 B
PHP
25 lines
545 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use Spatie\Translatable\HasTranslations;
|
|
use Stephenjude\FilamentBlog\Models\Category as BaseCategory;
|
|
|
|
class BlogCategory extends BaseCategory
|
|
{
|
|
use HasFactory, SoftDeletes, HasTranslations;
|
|
|
|
protected $translatable = [
|
|
'name',
|
|
'description',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'slug',
|
|
'is_visible',
|
|
'translations',
|
|
];
|
|
} |