protected function getFile($request)
    {
        $columns = explode('.',$this->options['column']);
        $column = count($columns) > 1 ? $columns[1] : $columns[0];
        $inputName = isset($this->options['group'])
            ? "{$this->options['group']}.{$this->options['index']}.{$column}"
            : $column;
        $inputName = isset($this->options['inputPrefix']) && $this->options['inputPrefix'] ? $this->options['inputPrefix'] . $inputName : $inputName;
        if ( isset($this->options['isElfinder']) && $this->options['isElfinder'] ) {
            $file = $request->input($inputName);
            $this->elfinderFilePath = public_path($file);
        } else {
            $file = $request->file($inputName);
            // eğer dosya yoksa init var mı bakılır
            if (! $file || (is_array($file) && array_search(null,$file) !== false) ) {
                $column  = 'init_';
                $column .= count($columns) > 1 ? $columns[1] : $columns[0];
                $file = $request->get($column);
            }
        }
        return is_array($file) ? $file : [$file];
    }
protected function getFile($request)
    {
        $columns = explode('.',$this->options['column']);
        $column = count($columns) > 1 ? $columns[1] : $columns[0];
        $inputName = isset($this->options['group'])
            ? "{$this->options['group']}.{$this->options['index']}.{$column}"
            : $column;
        $inputName = isset($this->options['inputPrefix']) && $this->options['inputPrefix'] ? $this->options['inputPrefix'] . $inputName : $inputName;
        if ( isset($this->options['isElfinder']) && $this->options['isElfinder'] ) {
            $file = $request->input($inputName);
            $this->elfinderFilePath = public_path($file);
        } else {
            $file = $request->file($inputName);
            // eğer dosya yoksa init var mı bakılır
            if (! $file || (is_array($file) && array_search(null,$file) !== false) ) {
                $column  = 'init_';
                $column .= count($columns) > 1 ? $columns[1] : $columns[0];
                $file = $request->get($column);
            }
        }
        return is_array($file) ? $file : [$file];
    }
protected function getFile ( $ request ) { $ columns = explode ( '.' , $ this -> options [ 'column' ] ) ; $ column = count ( $ columns ) > 1 ? $ columns [ 1 ] : $ columns [ 0 ] ; $ inputName = isset ( $ this -> options [ 'group' ] ) ? "{$this->options['group']}.{$this->options['index']}.{$column}" : $ column ; $ inputName = isset ( $ this -> options [ 'inputPrefix' ] ) && $ this -> options [ 'inputPrefix' ] ? $ this -> options [ 'inputPrefix' ] . $ inputName : $ inputName ; if ( isset ( $ this -> options [ 'isElfinder' ] ) && $ this -> options [ 'isElfinder' ] ) { $ file = $ request -> input ( $ inputName ) ; $ this -> elfinderFilePath = public_path ( $ file ) ; } else { $ file = $ request -> file ( $ inputName ) ; // eğer dosya yoksa init var mı bakılır
 if ( ! $ file || ( is_array ( $ file ) && array_search ( null , $ file ) !== false ) ) { $ column = 'init_' ; $ column .= count ( $ columns ) > 1 ? $ columns [ 1 ] : $ columns [ 0 ] ; $ file = $ request -> get ( $ column ) ; } } return is_array ( $ file ) ? $ file : [ $ file ] ; }
get file or string path

@param \Illuminate\Http\Request $request
@return \Symfony\Component\HttpFoundation\File\UploadedFile|string
get file or string path