Documentation

ChildControllerMethods

Table of Contents

deleteChild()  : string
indexChild()  : string
showChild()  : string
storeChild()  : string
updateChild()  : string

Methods

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

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

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

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

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

Search results