You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within the created closure on the Media model, self::generateThumbs($media) is being called even if the mimetype is not an image (ie. PDF). This causes a fatal error with Intervention. Possible fix:
static::created(function (Media$media) {
$media->refresh();
if (str($media->type)->contains("image")) {
self::generateThumbs($media);
}
});
The text was updated successfully, but these errors were encountered:
Within the created closure on the Media model, self::generateThumbs($media) is being called even if the mimetype is not an image (ie. PDF). This causes a fatal error with Intervention. Possible fix:
The text was updated successfully, but these errors were encountered: