32 lines
693 B
PHP
32 lines
693 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\Post as BasePost;
|
|
|
|
class BlogPost extends BasePost
|
|
{
|
|
use HasFactory, SoftDeletes, HasTranslations;
|
|
|
|
protected $translatable = [
|
|
'title',
|
|
'excerpt',
|
|
'content',
|
|
'meta_title',
|
|
'meta_description',
|
|
];
|
|
|
|
protected $fillable = [
|
|
'blog_author_id',
|
|
'blog_category_id',
|
|
'slug',
|
|
'banner',
|
|
'published_at',
|
|
'is_published',
|
|
'translations',
|
|
];
|
|
} |