Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class Reply extends Model |
||
20 | { |
||
21 | use SoftDeletes; |
||
22 | |||
23 | protected $fillable = [ |
||
24 | 'user_id', |
||
25 | 'topic_id', |
||
26 | 'content', |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
31 | */ |
||
32 | public function user() |
||
33 | { |
||
34 | return $this->belongsTo(User::class); |
||
35 | } |
||
36 | |||
37 | public function topic() |
||
40 | } |
||
41 | } |
||
42 |