2017-12-20 10:19:36 +08:00
|
|
|
<?php
|
|
|
|
|
2017-12-26 05:19:34 +08:00
|
|
|
namespace App\Models;
|
2017-12-20 10:19:36 +08:00
|
|
|
|
2017-12-26 05:19:34 +08:00
|
|
|
use App\Models\Traits\HashId;
|
2017-12-20 10:19:36 +08:00
|
|
|
|
2017-12-26 05:19:34 +08:00
|
|
|
class Acars extends BaseModel
|
2017-12-20 10:19:36 +08:00
|
|
|
{
|
2017-12-26 05:19:34 +08:00
|
|
|
use HashId;
|
|
|
|
public $incrementing = false;
|
|
|
|
|
2017-12-20 10:19:36 +08:00
|
|
|
public $table = 'acars';
|
2017-12-26 05:19:34 +08:00
|
|
|
|
|
|
|
public $fillable = [
|
|
|
|
'pirep_id',
|
|
|
|
'name',
|
|
|
|
'lat',
|
|
|
|
'lon',
|
|
|
|
'altitude',
|
|
|
|
'vs',
|
|
|
|
'gs',
|
|
|
|
'transponder',
|
|
|
|
'autopilot',
|
|
|
|
'fuel_flow',
|
|
|
|
'sim_time',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* FKs
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function pirep()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\Models\Pirep', 'pirep_id');
|
|
|
|
}
|
2017-12-20 10:19:36 +08:00
|
|
|
}
|