phpvms/app/Models/PirepFieldValues.php
2018-03-19 20:50:40 -05:00

35 lines
505 B
PHP

<?php
namespace App\Models;
use App\Interfaces\Model;
/**
* Class PirepFieldValues
* @package App\Models
*/
class PirepFieldValues extends Model
{
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');
}
}