ComparesCastableAttributes.php 482 B

12345678910111213141516171819
  1. <?php
  2. namespace Illuminate\Contracts\Database\Eloquent;
  3. use Illuminate\Database\Eloquent\Model;
  4. interface ComparesCastableAttributes
  5. {
  6. /**
  7. * Determine if the given values are equal.
  8. *
  9. * @param \Illuminate\Database\Eloquent\Model $model
  10. * @param string $key
  11. * @param mixed $firstValue
  12. * @param mixed $secondValue
  13. * @return bool
  14. */
  15. public function compare(Model $model, string $key, mixed $firstValue, mixed $secondValue);
  16. }