2017-12-21 06:34:52 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Navdata extends Model
|
|
|
|
{
|
|
|
|
public $table = 'navdata';
|
|
|
|
public $timestamps = false;
|
|
|
|
public $incrementing = false;
|
|
|
|
|
|
|
|
public $fillable = [
|
|
|
|
'id',
|
|
|
|
'name',
|
|
|
|
'type',
|
|
|
|
'lat',
|
|
|
|
'lon',
|
|
|
|
'freq',
|
|
|
|
];
|
|
|
|
|
|
|
|
public $casts = [
|
2017-12-21 09:12:39 +08:00
|
|
|
'id' => 'string',
|
|
|
|
'type' => 'integer',
|
|
|
|
'lat' => 'float',
|
|
|
|
'lon' => 'float',
|
2017-12-21 06:34:52 +08:00
|
|
|
];
|
|
|
|
}
|