for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sfneal\Address\Models\Traits;
trait AddressAccessors
{
/**
* Get the 'city_state' attribute.
*
* @return null|string
*/
public function getCityStateAttribute(): ?string
return $this->address->city_state ?? null;
}
* Retrieve the User's 'address1' attribute.
public function getAddress1Attribute(): ?string
return $this->address->address_1 ?? null;
* Retrieve the User's 'address2' attribute.
public function getAddress2Attribute(): ?string
return $this->address->address_2 ?? null;
* Retrieve the User's 'city' attribute.
public function getCityAttribute(): ?string
return $this->address->city ?? null;
* Retrieve the User's 'state' attribute.
public function getStateAttribute(): ?string
return $this->address->state ?? null;
* Retrieve the User's 'zip' attribute.
public function getZipAttribute(): ?string
return $this->address->zip ?? null;