git commit"fix flight type display and status handling"

This commit is contained in:
2026-08-18 19:49:46 +03:30
parent 62a95c411b
commit 40dbf3b575
10 changed files with 130 additions and 94 deletions
+4 -2
View File
@@ -39,7 +39,9 @@ use Illuminate\Database\Eloquent\Model;
class Flight extends Model
{
protected $table = 'flights';
public static $snakeAttributes = false;
public $timestamps = true;
protected $casts = [
'departure_date' => 'datetime',
@@ -47,8 +49,8 @@ class Flight extends Model
'arrival_time' => 'datetime',
'capacity' => 'int',
'price' => 'float',
'type' => FlightType::class,
'status' => FlightStatus::class,
'type' => 'int',
'status' => 'int',
];
protected $fillable = [