BookingPayment extends Model Uses HasFactory, SoftDeletes
Table of Contents
- $dates : array<string|int, mixed>
- Column for soft deletes
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable.
- $guarded : array<string|int, mixed>
- The attributes that are not mass assignable.
- $hidden : array<string|int, mixed>
- The attributes that should be hidden for arrays.
- $table : string
- The table associated with the model.
- $with : array<string|int, mixed>
- The extra attributes that should be showed for arrays.
- booking() : mixed
- Get the booking of the item.
- transactions() : mixed
- Get the transactions of the item.
- updateTotalAndTaxes() : mixed
Properties
$dates
Column for soft deletes
protected
array<string|int, mixed>
$dates
= ["deleted_at"]
$fillable
The attributes that are mass assignable.
protected
array<string|int, mixed>
$fillable
= ["salutation", "name", "lastname", "address", "email", "company_vat_number", "taxes", "discount", "total", "currency", "status", "comment", "iban"]
$guarded
The attributes that are not mass assignable.
protected
array<string|int, mixed>
$guarded
= []
$hidden
The attributes that should be hidden for arrays.
protected
array<string|int, mixed>
$hidden
= ["booking_id", "created_at", "updated_at", "deleted_at"]
$table
The table associated with the model.
protected
string
$table
= "booking_payments"
$with
The extra attributes that should be showed for arrays.
protected
array<string|int, mixed>
$with
= ['transactions']
Methods
booking()
Get the booking of the item.
public
booking() : mixed
Return values
mixed —transactions()
Get the transactions of the item.
public
transactions() : mixed
Return values
mixed —updateTotalAndTaxes()
public
updateTotalAndTaxes() : mixed