| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class ForumPost extends Model |
||
| 9 | { |
||
| 10 | use HasFactory; |
||
| 11 | |||
| 12 | protected $fillable = ['topic_id', 'content', 'author']; |
||
| 13 | protected $dates = ['created_at', 'updated_at']; |
||
| 14 | |||
| 15 | public function comments() |
||
| 16 | { |
||
| 17 | return $this->hasMany(ForumPostComment::class, 'post_id'); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function author() |
||
| 23 | } |
||
| 24 | } |
||
| 25 |