Я использую пакет elFinder. Пожалуйста, помогите мне переопределить метод sanitizeFileName в Laravel
vendor\studio-42\elfinder\php\plugins\Sanitizer\plugin.php
Вот метод:
private function sanitizeFileName($filename, $opts, $allows = array())
{
$targets = $allows? array_diff($opts['targets'], $allows) : $opts['targets'];
return str_replace($targets, $opts['replace'], $filename);
}
Подробнее здесь: https://stackoverflow.com/questions/469 ... 5-4-vendor