⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
muhasebe
/
modules
/
Tour
/
Models
/
Edit File: TourMeta.php
<?php namespace Modules\Tour\Models; use App\BaseModel; use Illuminate\Http\Request; class TourMeta extends BaseModel { protected $table = 'bravo_tour_meta'; protected $fillable = [ 'enable_person_types', 'person_types', 'enable_extra_price', 'extra_price', 'enable_open_hours', 'open_hours', 'discount_by_people', ]; /** * The attributes that should be casted to native types. * * @var array */ protected $casts = [ 'person_types' => 'array', 'extra_price' => 'array', 'open_hours' => 'array', 'discount_by_people' => 'array', ]; public function fill(array $attributes) { if(!empty($attributes)){ foreach ( $this->fillable as $item ){ $attributes[$item] = $attributes[$item] ?? null; } } return parent::fill($attributes); // TODO: Change the autogenerated stub } }
Simpan