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
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
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
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
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.