class ApiTokenController extends Controller

Traits

AuthorizesRequests
ValidatesRequests

Methods

bool
isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

RedirectResponse
fuzzyRedirect()

Redirects to the _redirect URL, to a route or else back.

__construct()

Creates a new ApiTokenController instance.

ApiToken>
index(Request $request)

Shows a list of all API tokens belonging to the authenticated user.

ApiToken|RedirectResponse
store(Request $request)

Creates a new API token.

RedirectResponse|null
destroy(Request $request, int $id)

Removes the specified API token.

Details

in Controller at line 21
bool isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

Parameters

Request $request

Return Value

bool

in Controller at line 15
protected RedirectResponse fuzzyRedirect()

Redirects to the _redirect URL, to a route or else back.

Return Value

RedirectResponse

at line 15
__construct()

Creates a new ApiTokenController instance.

at line 45
ApiToken> index(Request $request)

Shows a list of all API tokens belonging to the authenticated user.

Parameters

Request $request

Return Value

ApiToken>

at line 77
ApiToken|RedirectResponse store(Request $request)

Creates a new API token.

Parameters

Request $request

Return Value

ApiToken|RedirectResponse

at line 113
RedirectResponse|null destroy(Request $request, int $id)

Removes the specified API token.

Parameters

Request $request
int $id

Return Value

RedirectResponse|null