Controller
abstract class Controller extends Controller
Traits
Methods
Determines if the request was done by an automated script (with API token or ajax).
Redirects to the _redirect URL, to a route or else back.
Creates a new instance.
Handle a generic export request.
Get the query for the model to export.
Get the filename of the export archive.
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).
in
Controller at line 15
protected RedirectResponse
fuzzyRedirect()
Redirects to the _redirect URL, to a route or else back.
at line 13
__construct()
Creates a new instance.
at line 24
BinaryFileResponse
show(Request $request)
Handle a generic export request.
at line 53
abstract protected Builder
getQuery()
Get the query for the model to export.
at line 61
abstract protected Export
getExport(array $ids)
Get the new export instance.
at line 68
abstract protected string
getExportFilename()
Get the filename of the export archive.
at line 75
protected bool
isAllowed()
Determine if this kind of export is allowed by the config.