1 | <?php |
||
8 | class LaravelFastComments extends Model |
||
9 | { |
||
10 | /** |
||
11 | * The table associated with the model. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $table = 'comments'; |
||
16 | |||
17 | /** |
||
18 | * The attributes that are mass assignable. |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $fillable = [ |
||
23 | 'comment', 'user_id', |
||
24 | ]; |
||
25 | |||
26 | /** |
||
27 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
28 | * @throws Exception |
||
29 | */ |
||
30 | public function commentator() |
||
34 | |||
35 | /** |
||
36 | * @return \Illuminate\Config\Repository|mixed |
||
37 | * @throws Exception |
||
38 | */ |
||
39 | protected function getAuthModelName() |
||
46 | } |
||
47 |