Documentation

AgencyController extends Controller

Table of Contents

$repo  : mixed
__construct()  : mixed
delete()  : string
deleteChild()  : string
deleteCustom()  : string
destroy()  : string
getAccessToken()  : string
getPaymentMethods()  : string
index()  : string
indexChild()  : string
indexCustom()  : string
publicIndex()  : string
publicShow()  : string
publicStore()  : string
renewAccessToken()  : string
show()  : string
showChild()  : string
showCustom()  : string
store()  : string
storeChild()  : string
storeCustom()  : string
tourOperators()  : string
tourOperators_delete()  : bool
tourOperators_store()  : string
tourOperators_update()  : object
update()  : string
updateChild()  : string
updateCustom()  : string
updatePaymentMethods()  : string
updatePermissions()  : string
userModules()  : string
users()  : string
users_delete()  : string
users_link()  : string
users_show()  : string
users_store()  : string
users_update()  : string
handleExceptions()  : mixed

Properties

Methods

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

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

getAccessToken()

public getAccessToken(int $id) : string
Parameters
$id : int
  • Id of the agency that we want to know access token.
Tags
desc

get access token

Return values
string

getPaymentMethods()

public getPaymentMethods(int $id) : string
Parameters
$id : int
  • Id of the agency that we want to know access token.
Tags
desc

get payment methods (Stripe)

Return values
string

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

renewAccessToken()

public renewAccessToken(int $id) : string
Parameters
$id : int
  • Id of the agency that we want to renew access token.
Tags
desc

Force renew access token

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

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

tourOperators()

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

List of tour operators members of agency

Return values
string

tourOperators_delete()

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

Delete record from the database

Return values
bool
  • Success or fail

tourOperators_store()

public tourOperators_store(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

Add tour operator to agency

Return values
string

tourOperators_update()

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

Update record in the database

Return values
object

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

updatePaymentMethods()

public updatePaymentMethods(Request $request, int $id) : string
Parameters
$request : Request
$id : int
  • Id of the agency that we want to know access token.
Tags
desc

update payment method (Stripe)

Return values
string

updatePermissions()

public updatePermissions(Request $request, int $id, mixed $user_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.
$user_id : mixed
Tags
desc

Update permissions from the database

Return values
string

userModules()

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

Return a database record with modules

Return values
string

users()

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

List of users members of agency

Return values
string

users_delete()

public users_delete(int $id, mixed $user_id) : string
Parameters
$id : int
  • Id of the object that we want to update.
$user_id : mixed
Tags
desc

Remove user from agency

Return values
string
public users_link(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

Add user to agency

Return values
string

users_show()

public users_show(Request $request, int $id, mixed $user_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.
$user_id : mixed
Tags
desc

Add user to agency

Return values
string

users_store()

public users_store(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

Add user to agency

Return values
string

users_update()

public users_update(Request $request, int $id, mixed $user_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.
$user_id : mixed
Tags
desc

Add user to agency

Return values
string

handleExceptions()

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

Search results