'boolean' ]; public function setPhoneAttribute($phone) { return $this->attributes['phone'] = str_replace(['+', '-', '(', ')', ' '], '', $phone); } }