src/Traits/HasAddresses.php
public function addAddress(array $attributes)
    {
        $attributes = $this->loadAddressAttributes($attributes);

        return $this->addresses()->updateOrCreate($attributes);
    }
public function addAddress(array $attributes)
    {
        $attributes = $this->loadAddressAttributes($attributes);

        return $this->addresses()->updateOrCreate($attributes);
    }
public function addAddress ( array $ attributes ) { $ attributes = $ this -> loadAddressAttributes ( $ attributes ) ; return $ this -> addresses ( ) -> updateOrCreate ( $ attributes ) ; }
Add an address to this model.

@param  array  $attributes
@return mixed

@throws \Exception
Add an address to this model .