Initial baseline: LaraBlog core with plugin commerce surface.

Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
This commit is contained in:
ak
2026-08-12 01:15:38 +08:00
commit 263b98b218
337 changed files with 31393 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace App\Domain\Blog;
final class ContentFormat
{
public const HTML = 'html';
public const MARKDOWN = 'markdown';
public static function all(): array
{
return [self::HTML, self::MARKDOWN];
}
public static function isValid(string $format): bool
{
return in_array($format, self::all(), true);
}
public static function normalize(?string $format, string $fallback = self::HTML): string
{
$format = strtolower(trim((string) $format));
return self::isValid($format) ? $format : $fallback;
}
}