BookingItem extends Model Uses HasFactory, SoftDeletes
Table of Contents
- NEW_PREFIX = "App\Models\"
- PREFIX = "App\"
- $models : mixed
- $target : mixed
- $appends : array<string|int, mixed>
- The accessors to append to the model's array form.
- $hidden : mixed
- booking() : mixed
- getTargetAttribute() : mixed
- relateInstance() : mixed
- boot() : mixed
Constants
NEW_PREFIX
public
mixed
NEW_PREFIX
= "App\Models\"
PREFIX
public
mixed
PREFIX
= "App\"
Properties
$models
public
static mixed
$models
= ["vehicles" => "BookingVehicle", "flights" => "BookingFlight", "stays" => "BookingStay", "others" => "BookingOther", "packages" => "BookingPackage"]
$target
public
mixed
$target
$appends
The accessors to append to the model's array form.
protected
array<string|int, mixed>
$appends
= ['target']
$hidden
protected
mixed
$hidden
= ['created_at', 'updated_at', 'deleted_at']
Methods
booking()
public
booking() : mixed
Return values
mixed —getTargetAttribute()
public
getTargetAttribute() : mixed
Return values
mixed —relateInstance()
public
relateInstance(Model $bookingInstance) : mixed
Parameters
- $bookingInstance : Model
Return values
mixed —boot()
protected
static boot() : mixed