public function setStateAttribute($state) { $this->validateStateIsAvailable($state); $this->attributes['state'] = $state; }