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

void
__construct()

Instantiate a new controller instance.

Response
indexDirectories(Request$request,string$disk)

List directories in a storage disk.

Response
indexImages(Request$request,string$disk)

List images in a storage disk.

bool
diskAccessible(string$disk)

Determines if a storage disk is accessible.

array
removePrefix(string$prefix,array$list)

Removes a prefix from all strings in an array.

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 line17
void __construct()

Instantiate a new controller instance.

Return Value

void

at line51
Response indexDirectories(Request$request,string$disk)

List directories in a storage disk.

Parameters

Request $request
string $disk

Return Value

Response

at line90
Response indexImages(Request$request,string$disk)

List images in a storage disk.

Parameters

Request $request
string $disk

Return Value

Response

at line111
protectedbool diskAccessible(string$disk)

Determines if a storage disk is accessible.

Parameters

string $disk

Return Value

bool

at line125
protectedarray removePrefix(string$prefix,array$list)

Removes a prefix from all strings in an array.

Parameters

string $prefix
array $list

Return Value

array