* * @version 1.0.0 */ class Sale extends Model { protected $fillable = [ 'user_id', 'invoice_number', 'subtotal', 'tax', 'total', 'payment_method', 'status', ]; protected $casts = [ 'subtotal' => 'decimal:2', 'tax' => 'decimal:2', 'total' => 'decimal:2', ]; }