BookStack\Services\UploadService::getStorage PHP Method

getStorage() protected method

Get the storage that will be used for storing images.
protected getStorage ( ) : Illuminate\Contracts\Filesystem\Filesystem
return Illuminate\Contracts\Filesystem\Filesystem
    protected function getStorage()
    {
        if ($this->storageInstance !== null) {
            return $this->storageInstance;
        }
        $storageType = config('filesystems.default');
        $this->storageInstance = $this->fileSystem->disk($storageType);
        return $this->storageInstance;
    }