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