ProjectVolumeController
class ProjectVolumeController 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.
Shows a list of all volumes belonging to the specified project.
Attaches the existing specified volume to the existing specified project.
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).
in
Controller at line 15
protected RedirectResponse
fuzzyRedirect()
Redirects to the _redirect URL, to a route or else back.
at line 41
Collection
index(int $id)
Shows a list of all volumes belonging to the specified project.
.
at line 101
Volume|RedirectResponse
store(StoreVolume $request)
Creates a new volume associated to the specified project.
at line 163
attach(Request $request, int $projectId, int $volumeId)
Attaches the existing specified volume to the existing specified project.
at line 194
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).