vendredi 22 février 2019

How to properly override vendor class in laravel filemanager

When I am moving files from to new folders in Laravel filemanager v2 I keep getting this error:

mb_detect_encoding() expects parameter 1 to be string, array given

From: vendor\unisharp\laravel-filemanager\src\Lfm.php:194

public function translateFromUtf8($input){
    if ($this->isRunningOnWindows()) {
        $input = iconv('UTF-8', mb_detect_encoding($input), $input);
    }
    return $input;
}

Now in config I have:

'use_package_routes' => true,

Does this mean that to change this method I need to make new custom routes, custom controller that use my model that extends Lfm model or is there an easier way?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire