Skip to content

Commit b5e46a8

Browse files
authored
Update AllowedMimeTypes.php
1 parent 31ac709 commit b5e46a8

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/Media/AllowedMimeTypes.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,22 +134,6 @@ public static function getValidationRule(string $type, bool $as_array = false, ?
134134
return $as_array ? $rules : implode('|', $rules);
135135
}
136136

137-
/**
138-
* Get the validation rule for the given type of attachment
139-
*
140-
* @param string|null $type
141-
* @return array
142-
*/
143-
public static function getAttachmentValidationRule(string $type = null): array
144-
{
145-
$rules = [
146-
'nullable',
147-
Rule::exists('media', 'id')->whereIn('mime_type', AllowedMimeTypes::getAllowedMimeTypes($type)),
148-
];
149-
150-
return $rules;
151-
}
152-
153137
/**
154138
* Get the type from the mime type
155139
* @param string $mime_type

0 commit comments

Comments
 (0)