class ServeFile (View source)

Methods

__construct(string $disk, array $config, bool $isProduction)

Create a new invokable controller to serve files.

__invoke(Request $request, string $path)

Handle the incoming request.

bool
hasValidSignature(Request $request)

Determine if the request has a valid signature if applicable.

Details

__construct(string $disk, array $config, bool $isProduction)

Create a new invokable controller to serve files.

Parameters

string $disk
array $config
bool $isProduction

__invoke(Request $request, string $path)

Handle the incoming request.

Parameters

Request $request
string $path

protected bool hasValidSignature(Request $request)

Determine if the request has a valid signature if applicable.

Parameters

Request $request

Return Value

bool

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.