class UserExportController 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 instance.

BinaryFileResponse
show(Request $request)

Handle a generic export request.

Builder
getQuery()

Get the query for the model to export.

getExport(array $ids)

Get the new export instance.

string
getExportFilename()

Get the filename of the export archive.

bool
isAllowed()

Determine if this kind of export is allowed by the config.

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

in Controller at line 13
__construct()

Creates a new instance.

in Controller at line 24
BinaryFileResponse show(Request $request)

Handle a generic export request.

Parameters

Request $request

Return Value

BinaryFileResponse

at line 24
protected Builder getQuery()

Get the query for the model to export.

Return Value

Builder

at line 32
protected Export getExport(array $ids)

Get the new export instance.

Parameters

array $ids

Return Value

Export

at line 40
protected string getExportFilename()

Get the filename of the export archive.

Return Value

string

at line 48
protected bool isAllowed()

Determine if this kind of export is allowed by the config.

Return Value

bool