feat: add tour enums, update Tour model, and create TourImage relation

This commit is contained in:
2026-08-20 11:58:45 +03:30
parent 3867350331
commit 021a66cfc9
5 changed files with 133 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Enums\Admin\Tour;
enum TourScope:int
{
case DOMESTIC = 0;
case INTERNATIONAL = 1;
public function label(): string
{
return match ($this) {
self::DOMESTIC => 'داخلی',
self::INTERNATIONAL => 'خارجی',
};
}
}