class VolumeUrl implements Rule

Constants

PROVIDER_DENYLIST_REGEX

Regexes to match denied storage providers.

Properties

protected string $message

The validation message to display.

Methods

__construct()

Create a new instance.

bool
passes(string $attribute, mixed $value)

Determine if the validation rule passes.

string
message()

Get the validation error message.

bool
passesRemoteUrl(string $value)

Validate a remote volume URL.

bool
passesDiskUrl(string $value)

Validate a storage disk volume URL.

bool
isDeniedProvider(string $value)

Determine if the new remote volume URL is from a denied provider.

Details

at line 40
__construct()

Create a new instance.

at line 52
bool passes(string $attribute, mixed $value)

Determine if the validation rule passes.

Parameters

string $attribute
mixed $value

Return Value

bool

at line 66
string message()

Get the validation error message.

Return Value

string

at line 78
protected bool passesRemoteUrl(string $value)

Validate a remote volume URL.

Parameters

string $value

Return Value

bool

at line 119
protected bool passesDiskUrl(string $value)

Validate a storage disk volume URL.

Parameters

string $value

Return Value

bool

at line 158
protected bool isDeniedProvider(string $value)

Determine if the new remote volume URL is from a denied provider.

Parameters

string $value

Return Value

bool