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

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.