feat: add scope/type enums, update Flight model, and organize enums

This commit is contained in:
2026-08-20 12:58:19 +03:30
parent feeaf317cf
commit a45dc7b0fb
5 changed files with 44 additions and 4 deletions
+8 -2
View File
@@ -6,8 +6,10 @@
namespace App\Models;
use App\Enums\FlightStatus;
use App\Enums\FlightTripType;
use App\Enums\Flight\FlightScope;;
use App\Enums\Flight\FlightStatus;
use App\Enums\Flight\FlightTripType;
use App\Enums\Flight\FlightType;
use Carbon\Carbon;
use Hekmatinasser\Verta\Verta;
use Illuminate\Database\Eloquent\Attributes\Scope;
@@ -54,6 +56,8 @@ class Flight extends Model
'capacity' => 'int',
'status' => FlightStatus::class,
'trip_type' => FlightTripType::class,
'flight_scope'=> FlightScope::class,
'flight_type', FlightType::class,
'views_count' => 'int'
];
@@ -68,6 +72,8 @@ class Flight extends Model
'capacity',
'status',
'trip_type',
'flight_scope',
'flight_type',
'views_count'
];
#[Scope]