Documentation

RoleApiController extends Controller
in package

Table of Contents

get()  : JsonResponse
Returns a single or all roles, requires the permission: admin.permissions.role.get
guest()  : JsonResponse
Returns the guest role and it's permissions
user()  : mixed
Returns the roles of the requested, or authenticated user Requesting the roles of other users requires the permission: admin.permissions.role.get

Methods

get()

Returns a single or all roles, requires the permission: admin.permissions.role.get

public get([int|null $id = null ]) : JsonResponse
Parameters
$id : int|null = null
Return values
JsonResponse

an array of roles

guest()

Returns the guest role and it's permissions

public guest() : JsonResponse
Return values
JsonResponse

user()

Returns the roles of the requested, or authenticated user Requesting the roles of other users requires the permission: admin.permissions.role.get

public user(Request $request[, int $id = null ]) : mixed
Parameters
$request : Request
$id : int = null
Return values
mixed

Search results