wip: article AI polish, category SEO fields, cover generator, membership plan seeder
CI / PHPUnit (PHP 8.3) (push) Failing after 4s
CI / PHPUnit (PHP 8.2) (push) Failing after 1m9s
CI / Deploy (manual gate) (push) Skipped

This commit is contained in:
2026-09-07 18:48:37 +00:00
parent 263b98b218
commit 3cec4c5e18
121 changed files with 4701 additions and 313 deletions
+7
View File
@@ -6,6 +6,7 @@ namespace App\Models;
use App\Domain\Blog\ContentFormat;
use App\Domain\Blog\ContentRenderer;
use App\Domain\Media\ArticleCoverService;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Model;
@@ -33,6 +34,7 @@ class Article extends Model
'read_password',
'ai_summary',
'ai_suggestions',
'ai_polished_content',
'legacy_attachments',
'cover_disk',
'cover_path',
@@ -61,6 +63,11 @@ class Article extends Model
return $this->cover_status === 'ready' && filled($this->cover_path);
}
public function coverUrl(): ?string
{
return app(ArticleCoverService::class)->publicUrl($this);
}
protected function contentFormat(): Attribute
{
return Attribute::make(