CastsInboundAttributes.php 425 B

1234567891011121314151617
  1. <?php
  2. namespace Illuminate\Contracts\Database\Eloquent;
  3. interface CastsInboundAttributes
  4. {
  5. /**
  6. * Transform the attribute to its underlying model values.
  7. *
  8. * @param \Illuminate\Database\Eloquent\Model $model
  9. * @param string $key
  10. * @param mixed $value
  11. * @param array $attributes
  12. * @return mixed
  13. */
  14. public function set($model, string $key, $value, array $attributes);
  15. }