phpvms/app/Models/PirepFieldValues.php
2018-02-06 13:46:23 -06:00

33 lines
482 B
PHP

<?php
namespace App\Models;
/**
* Class PirepFieldValues
* @package App\Models
*/
class PirepFieldValues extends BaseModel
{
public $table = 'pirep_field_values';
public $fillable = [
'pirep_id',
'name',
'value',
'source',
];
public static $rules = [
'name' => 'required',
];
/**
* Foreign Keys
*/
public function pirep()
{
return $this->belongsTo(Pirep::class, 'pirep_id');
}
}