MerchandiseOrder
extends Model
in package
uses
HasFactory
Table of Contents
Properties
Methods
- details() : mixed
- getStatusLabelAttribute() : string
- getTotalPriceFormattedAttribute() : string
- newFactory() : MerchandiseOrderFactory
Properties
$appends
public
mixed
$appends
= ['status_label', 'total_price_formatted']
$casts
protected
mixed
$casts
= ['status' => \Modules\Profile\Enums\MerchandiseOrderStatus::class]
$fillable
The attributes that are mass assignable.
protected
mixed
$fillable
= ['order_no', 'status', 'request_date', 'total_price', 'delivery_date', 'user_id']
Methods
details()
public
details() : mixed
getStatusLabelAttribute()
public
getStatusLabelAttribute() : string
Return values
stringgetTotalPriceFormattedAttribute()
public
getTotalPriceFormattedAttribute() : string
Return values
stringnewFactory()
protected
static newFactory() : MerchandiseOrderFactory