Documentation

BookingVehicle extends Model Uses HasFactory, SoftDeletes

Table of Contents

$appends  : array<string|int, mixed>
The accessors to append to the model's array form.
$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 customers of the item.
bookingItem()  : mixed
getAgencyAttribute()  : mixed
Get the customers of the item.
getPickUpPlaceAttribute()  : mixed
Get the customers of the item.
getReturnPlaceAttribute()  : mixed
Get the customers of the item.
pick_up_place_object()  : mixed
Get the user type of the item.
return_place_object()  : mixed
Get the customers of the item.
storeValidator()  : mixed
updateValidator()  : mixed
vehicle()  : mixed
Get the customers of the item.
vehicleExtra()  : BelongsToMany

Properties

$appends

The accessors to append to the model's array form.

protected array<string|int, mixed> $appends = ['pick_up_place', 'return_place']

$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 = ["booking_id", "vehicle_id", "pick_up_date", "pick_up_place_id", "return_date", "return_place_id", "price", "entire_price", "kilometres", "max_kilometres", "booking_code", "email_sent", "commission", "taxes", "tax_base", "time_and_kilometres", "provider_payment", "contract_n", "comments", "plate", "valued_bond_value", "deposit", "flight_number"]

$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", "booking", "vehicle_id", "pick_up_place_id", "return_place_id", "created_at", "updated_at", "deleted_at"]

$table

The table associated with the model.

protected string $table = "booking_vehicles"

$with

The extra attributes that should be showed for arrays.

protected array<string|int, mixed> $with = ['vehicle', 'vehicleExtra']

Methods

booking()

Get the customers of the item.

public booking() : mixed
Return values
mixed

bookingItem()

public bookingItem() : mixed
Return values
mixed

getAgencyAttribute()

Get the customers of the item.

public getAgencyAttribute() : mixed
Return values
mixed

getPickUpPlaceAttribute()

Get the customers of the item.

public getPickUpPlaceAttribute() : mixed
Return values
mixed

getReturnPlaceAttribute()

Get the customers of the item.

public getReturnPlaceAttribute() : mixed
Return values
mixed

pick_up_place_object()

Get the user type of the item.

public pick_up_place_object() : mixed
Return values
mixed

return_place_object()

Get the customers of the item.

public return_place_object() : mixed
Return values
mixed

storeValidator()

public storeValidator(mixed $agency_id[, mixed $data = null ]) : mixed
Parameters
$agency_id : mixed
$data : mixed = null
Return values
mixed

updateValidator()

public updateValidator(mixed $agency_id[, mixed $data = null ]) : mixed
Parameters
$agency_id : mixed
$data : mixed = null
Return values
mixed

vehicle()

Get the customers of the item.

public vehicle() : mixed
Return values
mixed

vehicleExtra()

public vehicleExtra() : BelongsToMany
Return values
BelongsToMany

Search results