namespace App\Http\Controllers\Tools;
use App\Jobs\ProcessFluidbook;
+use Cubist\Util\Zip;
trait FluidbookDownload
{
protected function fluidbookdownload($args)
{
- ProcessFluidbook::dispatchSync();
+ //ProcessFluidbook::dispatchSync();
$p = storage_path('fluidbook.zip');
Zip::archive(storage_path('fluidbook/out'), $p);
return response(null)->header('Content-Disposition', 'attachment;filename=package.zip')->header('Content-Type', Files::_getMimeType($p))->header('X-Sendfile', $p);