+ /**
+ * Get the storage that will be used for storing files.
+ * @return \Illuminate\Contracts\Filesystem\Filesystem
+ */
+ protected function getStorage()
+ {
+ $storageType = config('filesystems.default');
+
+ // Override default location if set to local public to ensure not visible.
+ if ($storageType === 'local') {
+ $storageType = 'local_secure';
+ }
+
+ return $this->fileSystem->disk($storageType);
+ }
+