2017-08-02 23:17:54 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class PirepEvent
|
|
|
|
*
|
|
|
|
* @package App\Models
|
|
|
|
*/
|
2017-12-26 05:19:34 +08:00
|
|
|
class PirepComment extends BaseModel
|
2017-08-02 23:17:54 +08:00
|
|
|
{
|
|
|
|
public $table = 'pirep_comments';
|
|
|
|
|
|
|
|
public $fillable
|
|
|
|
= [
|
|
|
|
'comment',
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Validation rules
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public static $rules
|
|
|
|
= [
|
|
|
|
'comment' => 'required',
|
|
|
|
];
|
|
|
|
|
|
|
|
public function pirep()
|
|
|
|
{
|
|
|
|
return $this->belongsTo('App\Models\Pirep', 'pirep_id');
|
|
|
|
}
|
|
|
|
}
|