Documentation

VehicleController extends Controller

Table of Contents

$repo  : mixed
__construct()  : mixed
allCustom()  : string
delete()  : string
deleteBlockedPlateDates()  : JsonResponse
deleteChild()  : string
deleteCustom()  : string
destroy()  : string
excelDownload()  : Excel
Download an excel file with all customers
getAcrissCode()  : mixed
getBlockedVehiclePlate()  : JsonResponse
getVehiclePlates()  : JsonResponse
index()  : string
indexChild()  : string
indexCustom()  : string
publicIndex()  : string
publicShow()  : string
publicStore()  : string
searchBookedVehicles()  : mixed
searchVehicleForBookings()  : string
show()  : string
showChild()  : string
showCustom()  : string
store()  : string
storeBlockedPlateDates()  : JsonResponse
storeChild()  : string
storeCustom()  : string
update()  : string
updateChild()  : string
updateCustom()  : string
handleExceptions()  : mixed

Properties

Methods

allCustom()

public allCustom(Request $request, int $parent_id) : string
Parameters
$request : Request
$parent_id : int
  • Id of the parent objects that we want to get.
Tags
desc

Return a database records

Return values
string

delete()

public delete(Request $request, int $id) : string
Parameters
$request : Request
$id : int
  • Id of the object that we want to remove.
Tags
desc

Delete record from the database

Return values
string

deleteBlockedPlateDates()

public deleteBlockedPlateDates(Request $request,  $parent_id,  $vehicle_id,  $id) : JsonResponse
Parameters
$request : Request
$parent_id :
$vehicle_id :
$id :
Tags
desc

Delete a blocked date of a plate

throws
ValidationException
Return values
JsonResponse

deleteChild()

public deleteChild(Request $request, int $parent_id, int $id) : string
Parameters
$request : Request
  • Has the delete confirm field.
$parent_id : int
  • Id of the parent object that we want to delete.
$id : int
  • Id of the object that we want to delete.
Tags
desc

Delete record from the database

Return values
string

deleteCustom()

public deleteCustom(Request $request, mixed ...$params) : string
Parameters
$request : Request
  • Has the delete confirm field.
$params : mixed
Tags
desc

Delete record from the database

Return values
string

destroy()

public destroy(Request $request, int $id) : string
Parameters
$request : Request
$id : int
  • Id of the object that we want to remove.
Tags
desc

Destroy record from the database

Return values
string

excelDownload()

Download an excel file with all customers

public excelDownload(string $agency_id) : Excel
Parameters
$agency_id : string
Return values
Excel

getBlockedVehiclePlate()

public getBlockedVehiclePlate(Request $request,  $parent_id,  $id) : JsonResponse
Parameters
$request : Request
$parent_id :
$id :
Tags
desc

Get blocked vehicle plates between two dates

throws
ValidationException
Return values
JsonResponse

getVehiclePlates()

public getVehiclePlates(Request $request,  $parent_id,  $id) : JsonResponse
Parameters
$request : Request
$parent_id :
$id :
Tags
desc

Get all vehicle plates

throws
Exception
Return values
JsonResponse

index()

public index() : string
Tags
desc

Return a database records

Return values
string

indexChild()

public indexChild(int $parent_id) : string
Parameters
$parent_id : int
  • Id of the parent objects that we want to get.
Tags
desc

Return a database records

Return values
string

indexCustom()

public indexCustom(Request $request, mixed ...$params) : string
Parameters
$request : Request
$params : mixed
Tags
desc

Return a database records

Return values
string

publicIndex()

public publicIndex(Request $request) : string
Parameters
$request : Request
Tags
desc

Return a database record

Return values
string

publicShow()

public publicShow(Request $request, mixed $uuid) : string
Parameters
$request : Request
$uuid : mixed
Tags
desc

Return a database record

Return values
string

publicStore()

public publicStore(Request $request) : string
Parameters
$request : Request
  • Data of the object that we want to create.
Tags
desc

Create a new record in the database

Return values
string

searchBookedVehicles()

public searchBookedVehicles(Request $request, mixed $parent_id, mixed $id) : mixed
Parameters
$request : Request
$parent_id : mixed
$id : mixed
Return values
mixed

searchVehicleForBookings()

public searchVehicleForBookings(Request $request, int $parent_id) : string
Parameters
$request : Request
$parent_id : int
  • Id of the parent objects that we want to get.
Tags
desc

Return a database records

Return values
string

show()

public show(array<string|int, mixed> $id) : string
Parameters
$id : array<string|int, mixed>
  • Id of the item to get.
Tags
desc

Return a database record

Return values
string

showChild()

public showChild(int $parent_id, array<string|int, mixed> $id) : string
Parameters
$parent_id : int
  • Id of the parent object that we want to get.
$id : array<string|int, mixed>
  • Id of the item to get.
Tags
desc

Return a database record

Return values
string

showCustom()

public showCustom(Request $request, mixed ...$params) : string
Parameters
$request : Request
$params : mixed
Tags
desc

Return a database record

Return values
string

store()

public store(Request $request) : string
Parameters
$request : Request
  • Data of the object that we want to create.
Tags
desc

Create a new record in the database

Return values
string

storeBlockedPlateDates()

public storeBlockedPlateDates(Request $request,  $parent_id,  $vehicle_id,  $id) : JsonResponse
Parameters
$request : Request
$parent_id :
$vehicle_id :
$id :
Tags
desc

Store blocked date of a plate

throws
ValidationException
Return values
JsonResponse

storeChild()

public storeChild(Request $request, int $parent_id) : string
Parameters
$request : Request
  • Data of the object that we want to create.
$parent_id : int
  • Id of the parent object that we want to create.
Tags
desc

Create a new record in the database

Return values
string

storeCustom()

public storeCustom(Request $request, mixed ...$params) : string
Parameters
$request : Request
  • Data of the object that we want to create.
$params : mixed
Tags
desc

Create a new record in the database

Return values
string

update()

public update(Request $request, int $id) : string
Parameters
$request : Request
  • Datas of the object that we want to update.
$id : int
  • Id of the object that we want to update.
Tags
desc

Update record from the database

Return values
string

updateChild()

public updateChild(Request $request, int $parent_id, int $id) : string
Parameters
$request : Request
  • Datas of the object that we want to update.
$parent_id : int
  • Id of the parent object that we want to update.
$id : int
  • Id of the object that we want to update.
Tags
desc

Update record from the database

Return values
string

updateCustom()

public updateCustom(Request $request, mixed ...$params) : string
Parameters
$request : Request
  • Datas of the object that we want to update.
$params : mixed
Tags
desc

Update record from the database

Return values
string

handleExceptions()

protected handleExceptions(mixed $e) : mixed
Parameters
$e : mixed
Return values
mixed

Search results