mein-sterntours/app/Models/Airport.php
2025-04-01 10:40:14 +02:00

54 lines
1.5 KiB
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class Airport
*
* @property int $id
* @property string $code
* @property string $name
* @property string $city
* @property string $country
* @property bool $active
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @package App\Models
* @method static \Illuminate\Database\Eloquent\Builder|Airport newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Airport newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|Airport query()
* @method static \Illuminate\Database\Eloquent\Builder|Airport whereActive($value)
* @method static \Illuminate\Database\Eloquent\Builder|Airport whereCity($value)
* @method static \Illuminate\Database\Eloquent\Builder|Airport whereCode($value)
* @method static \Illuminate\Database\Eloquent\Builder|Airport whereCountry($value)
* @method static \Illuminate\Database\Eloquent\Builder|Airport whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|Airport whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|Airport whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|Airport whereUpdatedAt($value)
* @mixin \Eloquent
*/
class Airport extends Model
{
protected $connection = 'mysql';
protected $table = 'airports';
protected $casts = [
'active' => 'bool'
];
protected $fillable = [
'code',
'name',
'city',
'country',
'active'
];
}