class BrowserController 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
indexDirectories(Request $request, string $disk)

List directories in a storage disk.

Response
indexImages(Request $request, string $disk)

List images in a storage disk.

Response
indexVideos(Request $request, string $disk)

List videos in a storage disk.

Response
indexFiles(Request $request, string $disk, string $regex)

List files filtered by a regex in a storage disk.

array
removePrefix(string $prefix, array $list)

Removes a prefix from all strings in an array.

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 38
Response indexDirectories(Request $request, string $disk)

List directories in a storage disk.

Parameters

Request $request
string $disk

Return Value

Response

at line 87
Response indexImages(Request $request, string $disk)

List images in a storage disk.

Parameters

Request $request
string $disk

Return Value

Response

at line 119
Response indexVideos(Request $request, string $disk)

List videos in a storage disk.

Parameters

Request $request
string $disk

Return Value

Response

at line 137
protected Response indexFiles(Request $request, string $disk, string $regex)

List files filtered by a regex in a storage disk.

Parameters

Request $request
string $disk
string $regex

Return Value

Response

at line 162
protected array removePrefix(string $prefix, array $list)

Removes a prefix from all strings in an array.

Parameters

string $prefix
array $list

Return Value

array