feat: add tour enums, update Tour model, and create TourImage relation
This commit is contained in:
@@ -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 => 'خارجی',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user