RedbookPhoto
extends Model
in package
Uses
CanBulkUpdateOrInsert
Table of Contents
- $caption : string
- $created_at : string
- $driveVehiclePhotos : array<string|int, DriveVehiclePhoto>
- $id : int
- $photo_key : string
- $redbook_vehicle_id : int
- $redbookVehicle : RedbookVehicle
- $updated_at : string
- $vehicle_key : string
- $view : string
- $fillable : array<string|int, mixed>
- $imageHeight : int
- Default image height used when retrieving image from Redbook CDN
- $imageWidth : int
- Default image width used when retrieving image from Redbook CDN
- $keyType : string
- The "type" of the auto-incrementing ID.
- bulkUpdateOrInsert() : array<string|int, mixed>
- driveVehiclePhotos() : HasMany
- getUrlAttribute() : string
- redbookVehicle() : BelongsTo
Properties
$caption
public
string
$caption
$created_at
public
string
$created_at
$driveVehiclePhotos
public
array<string|int, DriveVehiclePhoto>
$driveVehiclePhotos
$id
public
int
$id
$photo_key
public
string
$photo_key
$redbook_vehicle_id
public
int
$redbook_vehicle_id
$redbookVehicle
public
RedbookVehicle
$redbookVehicle
$updated_at
public
string
$updated_at
$vehicle_key
public
string
$vehicle_key
$view
public
string
$view
$fillable
protected
array<string|int, mixed>
$fillable
= ['vehicle_key', 'redbook_vehicle_id', 'photo_key', 'view', 'caption']
$imageHeight
Default image height used when retrieving image from Redbook CDN
protected
int
$imageHeight
= 1440
$imageWidth
Default image width used when retrieving image from Redbook CDN
protected
int
$imageWidth
= 2560
$keyType
The "type" of the auto-incrementing ID.
protected
string
$keyType
= 'integer'
Methods
bulkUpdateOrInsert()
public
static bulkUpdateOrInsert(Collection $models, string $updateBy[, bool $insertIgnore = false ]) : array<string|int, mixed>
Parameters
- $models : Collection
- $updateBy : string
- $insertIgnore : bool = false
Tags
Return values
array<string|int, mixed> —driveVehiclePhotos()
public
driveVehiclePhotos() : HasMany
Return values
HasMany —getUrlAttribute()
public
getUrlAttribute() : string
Return values
string —redbookVehicle()
public
redbookVehicle() : BelongsTo