phpvms/app/Models/FlightFields.php

34 lines
447 B
PHP
Raw Normal View History

<?php
namespace App\Models;
/**
* Class Flight
*
* @package App\Models
*/
class FlightFields extends BaseModel
{
public $table = 'flight_fields';
public $fillable = [
'flight_id',
'name',
'value',
];
protected $casts = [];
public static $rules = [];
/**
* Relationships
*/
public function flight()
{
2018-01-08 23:22:12 +08:00
return $this->belongsTo(Flight::class, 'flight_id');
}
}