Merchandise
extends Model
in package
uses
HasFactory
Table of Contents
Properties
Methods
Properties
$appends
public
mixed
$appends
= ['price_formatted']
$fillable
The attributes that are mass assignable.
protected
mixed
$fillable
= ['name', 'price']
Methods
getPriceFormattedAttribute()
public
getPriceFormattedAttribute() : string
Return values
stringnewFactory()
protected
static newFactory() : MerchandiseFactory