| 1 | <?php |
||
| 8 | class JenisSekolah extends Model |
||
| 9 | { |
||
| 10 | use SoftDeletes; |
||
| 11 | |||
| 12 | public $timestamps = true; |
||
| 13 | |||
| 14 | protected $table = 'jenis_sekolahs'; |
||
| 15 | protected $fillable = [ |
||
| 16 | 'jenis_sekolah', |
||
| 17 | 'user_id', |
||
| 18 | ]; |
||
| 19 | protected $appends = [ |
||
| 20 | 'label', |
||
| 21 | ]; |
||
| 22 | protected $hidden = [ |
||
| 23 | ]; |
||
| 24 | protected $dates = [ |
||
| 25 | 'deleted_at', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | public function getLabelAttribute() |
||
| 32 | |||
| 33 | public function user() |
||
| 37 | |||
| 38 | } |
||
| 39 |