This commit is contained in:
2026-08-15 12:35:30 +03:30
commit 60936f504d
77 changed files with 14152 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* Class Airline
*
* @property int $id
* @property string $name
* @property string $country
* @property string $phone
* @property int $status
* @property Carbon $created_at
* @property Carbon $updated_at
*
* @property Collection|Flight[] $flights
*
* @package App\Models
*/
class Airline extends Model
{
protected $table = 'airlines';
public static $snakeAttributes = false;
protected $casts = [
'status' => 'int'
];
protected $fillable = [
'name',
'country',
'phone',
'status'
];
public function flights()
{
return $this->hasMany(Flight::class);
}
}