Documentation

VehicleRentalCompany 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.
deleteFile()  : void
getLogoAttribute()  : string|null
Get the modified value of the field logo
getLogoOriginalAttribute()  : array<string|int, mixed>|mixed
Get the original value of the field logo
getVehicleRentalCompanyPath()  : string
offices()  : mixed
Vehicle offices of this Vehicle Rental Company.
saveFile()  : void
vehicleLocations()  : mixed
Vehicle Locations of this Vehicle Rental Company.
vehicles()  : mixed
Get the Vehicles 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 = ['name', 'agency_id', 'one_way_cost', 'entire_charge', 'logo']

$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', 'created_at', 'updated_at', 'deleted_at']

$table

The table associated with the model.

protected string $table = "vehicle_rental_companies"

$with

The extra attributes that should be showed for arrays.

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

Methods

deleteFile()

public deleteFile( $file) : void
Parameters
$file :
Tags
desc

Delete logo

throws
Exception
Return values
void

getLogoAttribute()

Get the modified value of the field logo

public getLogoAttribute( $value) : string|null
Parameters
$value :
Return values
string|null

getLogoOriginalAttribute()

Get the original value of the field logo

public getLogoOriginalAttribute() : array<string|int, mixed>|mixed
Return values
array<string|int, mixed>|mixed

getVehicleRentalCompanyPath()

public getVehicleRentalCompanyPath() : string
Tags
desc

Generate path to save attachment

Return values
string

offices()

Vehicle offices of this Vehicle Rental Company.

public offices() : mixed
Return values
mixed

saveFile()

public saveFile( $file) : void
Parameters
$file :
Tags
desc

Save a logo

Return values
void

vehicleLocations()

Vehicle Locations of this Vehicle Rental Company.

public vehicleLocations() : mixed
Return values
mixed

vehicles()

Get the Vehicles of the item.

public vehicles() : mixed
Return values
mixed

Search results