/** * Get the path prefix. * * @param Media $media * * @return string */ protected function getPrefix(Media $media) { return md5($media->getAttribute('model_id') . '|' . $media->getAttribute('model_type')); }