public static function createFromRequest(Model $subject, string $key) { if (!request()->hasFile($key)) { throw FileCannotBeAdded::requestDoesNotHaveFile($key); } return static::create($subject, request()->file($key)); }