Documentation

VehiclePlate extends Model Uses HasFactory

Table of Contents

$fillable  : array<string|int, mixed>
The attributes that are mass assignable.
$hidden  : array<string|int, mixed>
The attributes that should be hidden for arrays.
$table  : string
The table associated with the model.
blockedPlateDates()  : mixed
Get blocked dates of a plate.
getVehicleNameAttribute()  : mixed
vehicle()  : mixed
Get the vehicle of the item.

Properties

$fillable

The attributes that are mass assignable.

protected array<string|int, mixed> $fillable = ['plate']

$hidden

The attributes that should be hidden for arrays.

protected array<string|int, mixed> $hidden = ['vehicle_id', 'created_at', 'updated_at']

$table

The table associated with the model.

protected string $table = "vehicle_plates"

Methods

blockedPlateDates()

Get blocked dates of a plate.

public blockedPlateDates() : mixed
Return values
mixed

getVehicleNameAttribute()

public getVehicleNameAttribute() : mixed
Return values
mixed

vehicle()

Get the vehicle of the item.

public vehicle() : mixed
Return values
mixed

Search results