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

35 lines
508 B
PHP

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