| 1234567891011121314151617181920212223 | 
							- <?php
 - 
 - namespace App\Casts;
 - 
 - use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
 - use Illuminate\Database\Eloquent\Model;
 - use UnexpectedValueException;
 - 
 - class MoneyCast implements CastsAttributes
 - {
 -     public function get(Model $model, string $key, mixed $value, array $attributes): int
 -     {
 -         return (int) $value;
 -     }
 - 
 -     /**
 -      * @throws UnexpectedValueException
 -      */
 -     public function set(Model $model, string $key, mixed $value, array $attributes): int
 -     {
 -         return (int) $value;
 -     }
 - }
 
 
  |