public function moveFile($file, $model)
    {
        $path = $this->getUploadPath($model, $this->options);
        $this->makeDirectoryBeforeUpload($path, true);

        if ( ! is_null($this->elfinderFilePath) ) {
            $this->copy($this->elfinderFilePath, $path . '/' . $this->fileName);
        } else {
            $this->move($file, $path . '/' . $this->fileName);
        }

        return [
            'fileName'  => $this->fileName,
            'fileSize'  => $this->fileSize
        ];
    }
public function moveFile($file, $model)
    {
        $path = $this->getUploadPath($model, $this->options);
        $this->makeDirectoryBeforeUpload($path, true);

        if ( ! is_null($this->elfinderFilePath) ) {
            $this->copy($this->elfinderFilePath, $path . '/' . $this->fileName);
        } else {
            $this->move($file, $path . '/' . $this->fileName);
        }

        return [
            'fileName'  => $this->fileName,
            'fileSize'  => $this->fileSize
        ];
    }
public function moveFile ( $ file , $ model ) { $ path = $ this -> getUploadPath ( $ model , $ this -> options ) ; $ this -> makeDirectoryBeforeUpload ( $ path , true ) ; if ( ! is_null ( $ this -> elfinderFilePath ) ) { $ this -> copy ( $ this -> elfinderFilePath , $ path . '/' . $ this -> fileName ) ; } else { $ this -> move ( $ file , $ path . '/' . $ this -> fileName ) ; } return [ 'fileName' => $ this -> fileName , 'fileSize' => $ this -> fileSize ] ; }
move upload file

@param $file
@param \Illuminate\Database\Eloquent\Model $model
@return string
move upload file