VehiclePrice extends Model
Table of Contents
- $casts : array<string|int, string>
- Gets text values and sets them as array
- $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.
- vehicle() : mixed
- Get the vehicle of the item.
Properties
$casts
Gets text values and sets them as array
protected
array<string|int, string>
$casts
= ['week_days_included' => 'array']
$fillable
The attributes that are mass assignable.
protected
array<string|int, mixed>
$fillable
= ['vehicle_id', 'range_start', 'range_end', 'week_days_included', 'price_per_day', 'commission', 'kilometres']
$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
= ['vehicle_id', 'created_at', 'updated_at', 'deleted_at']
$table
The table associated with the model.
protected
string
$table
= "vehicle_prices"
$with
The extra attributes that should be showed for arrays.
protected
array<string|int, mixed>
$with
= []
Methods
vehicle()
Get the vehicle of the item.
public
vehicle() : mixed