Documentation

Booking extends Model Uses HasFactory, SoftDeletes

Table of Contents

REFERENCE  = 'booking'
$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.
agency()  : mixed
Get the customers of the item.
bookingItems()  : mixed
Get items for the booking
bookingVehicles()  : mixed
Get items for the booking
brokerBooking()  : HasOne
customer()  : mixed
Get the customers of the item.
documents()  : mixed
Get the documents of the item.
flights()  : mixed
Get items for the booking
invoices()  : mixed
Get the invoices of the booking.
office()  : mixed
Get the office of the item.
others()  : mixed
Get items for the booking
package()  : mixed
Get items for the booking
participants()  : mixed
Get the participants of the item.
payment()  : mixed
Get the payment of the item.
relatedBooking()  : BelongsTo
stays()  : mixed
Get items for the booking
supplier()  : BelongsTo
type()  : mixed
Get the types of the item.
vehicles()  : mixed
Get the vehicles of the item.

Constants

REFERENCE

public mixed REFERENCE = 'booking'

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 = ['agency_id', 'customer_id', 'office_id', 'bookings_type_id', 'resume', 'related_booking_id', 'supplier_id']

$guarded

The attributes that are not mass assignable.

protected array<string|int, mixed> $guarded = ["id", "created_at", "updated_at", "deleted_at"]

$hidden

The attributes that should be hidden for arrays.

protected array<string|int, mixed> $hidden = ['bookings_type_id', 'customer_id', 'updated_at', 'deleted_at']

$table

The table associated with the model.

protected string $table = "bookings"

$with

The extra attributes that should be showed for arrays.

protected array<string|int, mixed> $with = ['agency', 'customer', 'type', 'payment', 'supplier']

Methods

agency()

Get the customers of the item.

public agency() : mixed
Return values
mixed

bookingItems()

Get items for the booking

public bookingItems() : mixed
Return values
mixed

bookingVehicles()

Get items for the booking

public bookingVehicles() : mixed
Return values
mixed

brokerBooking()

public brokerBooking() : HasOne
Return values
HasOne

customer()

Get the customers of the item.

public customer() : mixed
Return values
mixed

documents()

Get the documents of the item.

public documents() : mixed
Return values
mixed

flights()

Get items for the booking

public flights() : mixed
Return values
mixed

invoices()

Get the invoices of the booking.

public invoices() : mixed
Return values
mixed

office()

Get the office of the item.

public office() : mixed
Return values
mixed

others()

Get items for the booking

public others() : mixed
Return values
mixed

package()

Get items for the booking

public package() : mixed
Return values
mixed

participants()

Get the participants of the item.

public participants() : mixed
Return values
mixed

payment()

Get the payment of the item.

public payment() : mixed
Return values
mixed

relatedBooking()

public relatedBooking() : BelongsTo
Return values
BelongsTo

stays()

Get items for the booking

public stays() : mixed
Return values
mixed

supplier()

public supplier() : BelongsTo
Return values
BelongsTo

type()

Get the types of the item.

public type() : mixed
Return values
mixed

vehicles()

Get the vehicles of the item.

public vehicles() : mixed
Return values
mixed

Search results