final class RequiresEnv implements Actionable

Skips the test if the required environment variable is missing.

Methods

__construct(string $key, string|null $message = null)

Construct a new attribute.

mixed
handle(Application $app, Closure $action)

Handle the attribute.

Details

at line 22
__construct(string $key, string|null $message = null)

Construct a new attribute.

Parameters

string $key
string|null $message

at line 33
mixed handle(Application $app, Closure $action)

Handle the attribute.

Parameters

Application $app
Closure $action

Return Value

mixed