class ProjectVideoController extendsController

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

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

mixed
store(StoreVideo$request)

Creates a new video associated to the specified project.

array
getDiskAttrs(Video$video)

Get the size and mime type of a video from a storage disk.

array
getRemoteAttrs(Video$video)

Get the size and mime type of a video from a remote source.

Details

inControllerat line21
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

inControllerat line15
protectedRedirectResponse fuzzyRedirect()

Redirects to the _redirect URL, to a route or else back.

Return Value

RedirectResponse

at line48
Response index(int$id)

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

Parameters

int $id Project ID

Return Value

Response

at line91
mixed store(StoreVideo$request)

Creates a new video associated to the specified project.

Parameters

StoreVideo $request

Return Value

mixed

at line135
protectedarray getDiskAttrs(Video$video)

Get the size and mime type of a video from a storage disk.

Parameters

Video $video

Return Value

array

at line150
protectedarray getRemoteAttrs(Video$video)

Get the size and mime type of a video from a remote source.

Parameters

Video $video

Return Value

array