interface ComparesCastableAttributes (View source)

Methods

bool
compare(Model $model, string $key, mixed $firstValue, mixed $secondValue)

Determine if the given values are equal.

Details

bool compare(Model $model, string $key, mixed $firstValue, mixed $secondValue)

Determine if the given values are equal.

Parameters

Model $model
string $key
mixed $firstValue
mixed $secondValue

Return Value

bool