class StorageRequestController 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.

Response
store(StoreStorageRequest $request)

Initialize a new storage request

Response
show(int $id)

Show a storage request

Response
update(UpdateStorageRequest $request)

Submit a storage request

Response
approve(ApproveStorageRequest $request)

Approve a storage request

Response
reject(RejectStorageRequest $request)

Reject a storage request

Response
extend(ExtendStorageRequest $request)

Extend a storage request

Response
destroy(Request $request, int $id)

Delete a storage request with all its files.

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 34
Response store(StoreStorageRequest $request)

Initialize a new storage request

Parameters

StoreStorageRequest $request

Return Value

Response

at line 54
Response show(int $id)

Show a storage request

Parameters

int $id

Return Value

Response

at line 75
Response update(UpdateStorageRequest $request)

Submit a storage request

Parameters

UpdateStorageRequest $request

Return Value

Response

at line 106
Response approve(ApproveStorageRequest $request)

Approve a storage request

Parameters

ApproveStorageRequest $request

Return Value

Response

at line 126
Response reject(RejectStorageRequest $request)

Reject a storage request

Parameters

RejectStorageRequest $request

Return Value

Response

at line 148
Response extend(ExtendStorageRequest $request)

Extend a storage request

Parameters

ExtendStorageRequest $request

Return Value

Response

at line 170
Response destroy(Request $request, int $id)

Delete a storage request with all its files.

Parameters

Request $request
int $id

Return Value

Response