fillable as $item) { $attributes[$item] = $attributes[$item] ?? null; } } return parent::fill($attributes); // TODO: Change the autogenerated stub } public function service() { $all = get_bookable_services(); if ($this->object_model and !empty($all[$this->object_model])) { return $this->hasOne($all[$this->object_model], 'id', 'object_id'); } return false; } public function getStatusNameAttribute() { return booking_status_to_text($this->status); } }