#2 create post

This commit is contained in:
Saufi
2026-05-12 10:42:23 +08:00
parent 53be5221e9
commit 0192769ba3
43 changed files with 3331 additions and 26 deletions

17
app/Enums/PostStatus.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace App\Enums;
enum PostStatus: string
{
case Published = 'published';
case Draft = 'draft';
public function label(): string
{
return match ($this) {
PostStatus::Published => 'Published',
PostStatus::Draft => 'Draft',
};
}
}