integration vom Blog-plugin, hübschere webseite,

This commit is contained in:
Codex Agent
2025-09-26 17:41:17 +02:00
parent 492b9b9fd1
commit 6fc36ebaf4
31 changed files with 22823 additions and 96 deletions

32
app/Models/BlogPost.php Normal file
View File

@@ -0,0 +1,32 @@
<?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',
];
}