CartAddress
class CartAddress extends BaseModel implements Addressable (View source)
Traits
Properties
array | $cachableProperties | Array of cachable class properties. |
|
$shippingOption | The applied shipping option. |
||
$shippingSubTotal | The shipping sub total. |
||
$shippingTaxTotal | The shipping tax total. |
||
$shippingTotal | The shipping total. |
||
TaxBreakdown | $taxBreakdown | The tax breakdown. |
|
protected array | $fillable | Define which attributes should be protected from mass assignment. |
|
protected array | $casts | The attributes that should be cast. |
|
int | $id | ||
int | $cart_id | ||
?int | $country_id | ||
?string | $title | ||
?string | $first_name | ||
?string | $last_name | ||
?string | $company_name | ||
?string | $line_one | ||
?string | $line_two | ||
?string | $line_three | ||
?string | $city | ||
?string | $state | ||
?string | $postcode | ||
?string | $delivery_instructions | ||
?string | $contact_email | ||
?string | $contact_phone | ||
string | $type | ||
?string | $shipping_option | ||
array | $meta | ||
Carbon | $created_at | ||
Carbon | $updated_at |
Methods
Get new instance of the registered model.
Handle dynamic and static method calls into the model.
Forward a method call to the model only when calling a method on the model.
Register a model event with the dispatcher.
Fire the given event for the model.
Remove all the event listeners for the model.
Handle dynamic static method calls into the model.
Return a new factory instance for the model.
Return the cart relationship.
Return the country relationship.
Details
Model
newInstance(array $attributes = [], bool $exists = false)
Get new instance of the registered model.
mixed
__call(string $method, array $parameters)
Handle dynamic and static method calls into the model.
Model
swap(string $newModelClass)
Swap the model implementation.
string
getMorphClass()
Get the class name of the base model.
protected bool
forwardCallsWhen(string $method, Model $model)
Forward a method call to the model only when calling a method on the model.
static protected void
registerModelEvent(string $event, QueuedClosure|Closure|string $callback)
Register a model event with the dispatcher.
protected mixed
fireModelEvent(string $event, bool $halt = true)
Fire the given event for the model.
static void
flushEventListeners()
Remove all the event listeners for the model.
__construct(array $attributes = [])
Create a new instance of the Model.
LogOptions
getActivitylogOptions()
Get the log options for the activity log.
static mixed
__callStatic(string $method, array $parameters)
Handle dynamic static method calls into the model.
static
bootCachesProperties()
No description
refresh()
No description
protected string
cachePropertiesPrefix()
Returns a unique key for the cache.
void
cacheProperties()
Cache properties for reuse in same request.
void
restoreProperties()
Restores properties from the same request.
static protected CartAddressFactory
newFactory()
Return a new factory instance for the model.
BelongsTo
cart()
Return the cart relationship.
BelongsTo
country()
Return the country relationship.