/
var
/
www
/
html
/
back
/
app
/
DtoCasts
/
Upload File
HOME
<?php declare(strict_types=1); namespace App\DtoCasts; use Illuminate\Http\UploadedFile; use WendellAdriel\ValidatedDTO\Casting\Castable; final class MediaCast implements Castable { public function cast(string $property, mixed $value): mixed { if ($value instanceof UploadedFile) { return $value; } return null; } }