Topic.php 592 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Repositories\Models\Exam;
  3. use App\Repositories\Models\Model;
  4. use Prettus\Repository\Contracts\Transformable;
  5. use Prettus\Repository\Traits\TransformableTrait;
  6. /**
  7. * Class Topic.
  8. *
  9. * @package namespace App\Repositories\Models\Exam;
  10. */
  11. class Topic extends Model implements Transformable
  12. {
  13. use TransformableTrait;
  14. protected $table = 'exam_topics';
  15. /**
  16. * The attributes that are mass assignable.
  17. *
  18. * @var array
  19. */
  20. protected $guarded = [];
  21. protected $casts = [
  22. 'body' => 'array',
  23. 'result' => 'array',
  24. ];
  25. }