| 1 | <?php |
||
| 9 | class Reply extends Model implements HasPresenter |
||
| 10 | { |
||
| 11 | public static $includable = ['id', 'body', 'body_original', 'vote_count']; |
||
| 12 | protected $fillable = ['body', 'topic_id']; |
||
| 13 | |||
| 14 | protected $casts = [ |
||
| 15 | 'user_id' => 'int', |
||
| 16 | 'topic_id' => 'int', |
||
| 17 | 'is_block' => 'boolean', |
||
| 18 | 'vote_count' => 'int', |
||
| 19 | ]; |
||
| 20 | |||
| 21 | public function topic() |
||
| 25 | |||
| 26 | public function user() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the presenter class. |
||
| 33 | * |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function getPresenterClass() |
||
| 40 | } |
||
| 41 |