| 1 | <?php namespace Bantenprov\YankesInfoKamar\Models; |
||
| 12 | class Kelasrawat extends Model |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Table name. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | use SoftDeletes; |
||
| 20 | protected $table = 'kelas_rawat_inap'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The attributes that are mass assignable. |
||
| 24 | * |
||
| 25 | * @var mixed |
||
| 26 | */ |
||
| 27 | protected $fillable = ['kode_kelas','nama_kelas']; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The attributes that should be hidden for arrays. |
||
| 31 | * |
||
| 32 | * @var array |
||
| 33 | */ |
||
| 34 | protected $hidden = ['deleted_at']; |
||
| 35 | |||
| 36 | protected static function boot() |
||
| 46 | |||
| 47 | public function kelas() |
||
| 51 | } |
||
| 52 |