Documentation

VehicleLocation 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.
agency()  : mixed
Get the agency of the item.
rentalCompanies()  : mixed
Get the rental companies of the item.
state()  : mixed
Get the state of the item.
travels()  : mixed
Get the travels of the item.
vehicleOffices()  : mixed
Get the VehicleOffices of the item.

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', 'state_id', 'name', 'vat', 'uuid', 'rental_company', 'available', 'external_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 = ['agency_id', 'available', 'state_id', 'created_at', 'updated_at', 'deleted_at']

$table

The table associated with the model.

protected string $table = "vehicle_locations"

$with

The extra attributes that should be showed for arrays.

protected array<string|int, mixed> $with = ['state.country']

Methods

agency()

Get the agency of the item.

public agency() : mixed
Return values
mixed

rentalCompanies()

Get the rental companies of the item.

public rentalCompanies() : mixed
Return values
mixed

state()

Get the state of the item.

public state() : mixed
Return values
mixed

travels()

Get the travels of the item.

public travels() : mixed
Return values
mixed

vehicleOffices()

Get the VehicleOffices of the item.

public vehicleOffices() : mixed
Return values
mixed

Search results