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.

array
indexDirectories(Request $request, string $disk)

List directories in a storage disk.

array
indexImages(Request $request, string $disk)

List images in a storage disk.

array
indexVideos(Request $request, string $disk)

List videos in a storage disk.

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

List directories in a storage disk.

Parameters

Request $request
string $disk

Return Value

array

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

List images in a storage disk.

Parameters

Request $request
string $disk

Return Value

array

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

List videos in a storage disk.

Parameters

Request $request
string $disk

Return Value

array

at line 137
protected array 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

array

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