'local', 'throw' => false, 'root' => $rootPath, ]); $storageBuild->buildTemporaryUrlsUsing(function ($path, $expiration, $options) use($rootPath) { return URL::temporarySignedRoute( 'backup.download', $expiration, array_merge($options, [ 'path' => $path, 'root_path' => $rootPath, ]) ); }); return $storageBuild; } }