Documentation

VehicleExtra extends Model Uses HasFactory

Table of Contents

$fillable  : mixed
$with  : array<string|int, mixed>
The extra attributes that should be showed for arrays.
agency()  : BelongsTo
bookingVehicle()  : BelongsToMany
image()  : HasOne
vehicle()  : BelongsToMany

Properties

$fillable

protected mixed $fillable = ['agency_id', 'name', 'description', 'price_per_day', 'max_price']

$with

The extra attributes that should be showed for arrays.

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

Methods

agency()

public agency() : BelongsTo
Return values
BelongsTo

bookingVehicle()

public bookingVehicle() : BelongsToMany
Return values
BelongsToMany

image()

public image() : HasOne
Return values
HasOne

vehicle()

public vehicle() : BelongsToMany
Return values
BelongsToMany

Search results