| 1 | <?php |
||
| 7 | class TrainingType extends Model |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $table = 'training_types'; |
||
| 13 | /** |
||
| 14 | * @var bool |
||
| 15 | */ |
||
| 16 | public $timestamps = true; |
||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $fillable = ['name', 'description', 'sidebar', 'status']; |
||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $dates = ['created_at', 'updated_at']; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get the trainings that have the training type. |
||
| 28 | */ |
||
| 29 | 1 | public function trainings() |
|
| 33 | } |
||
| 34 |