public function getDirectory()
    {
        if ($this->directory instanceof \Closure) {
            return call_user_func($this->directory, $this->form);
        }

        return $this->directory ?: $this->defaultDirectory();
    }
public function getDirectory()
    {
        if ($this->directory instanceof \Closure) {
            return call_user_func($this->directory, $this->form);
        }

        return $this->directory ?: $this->defaultDirectory();
    }
public function getDirectory ( ) { if ( $ this -> directory instanceof \ Closure ) { return call_user_func ( $ this -> directory , $ this -> form ) ; } return $ this -> directory ? : $ this -> defaultDirectory ( ) ; }
Get directory for store file.

@return mixed|string
Get directory for store file .