CastsInboundAttributes.php 478 B

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