class ProjectVolumeController extends Controller

Traits

AuthorizesRequests
ValidatesRequests

Constants

CREATE_SYNC_LIMIT

Limit for the number of files above which volume files are created asynchronously.

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
index(int $id)

Shows a list of all volumes belonging to the specified project.

store(StoreVolume $request)

Creates a new volume associated to the specified project.

Response
attach(Request $request, int $projectId, int $volumeId)

Attaches the existing specified volume to the existing specified project.

Response
destroy(Request $request, int $projectId, int $volumeId)

Removes the specified volume from the specified project.

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 48
Response index(int $id)

Shows a list of all volumes belonging to the specified project.

.

Parameters

int $id

Project ID

Return Value

Response

at line 108
Volume store(StoreVolume $request)

Creates a new volume associated to the specified project.

Parameters

StoreVolume $request

Return Value

Volume

at line 172
Response attach(Request $request, int $projectId, int $volumeId)

Attaches the existing specified volume to the existing specified project.

Parameters

Request $request
int $projectId
int $volumeId

Return Value

Response

at line 204
Response destroy(Request $request, int $projectId, int $volumeId)

Removes the specified volume from the specified project.

If it is the last project the volume belongs to, the volume is deleted (if the force argument is present in the request).

Parameters

Request $request
int $projectId
int $volumeId

Return Value

Response