//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);
+ return response(null)->header('Content-Disposition', 'attachment;filename=package_' . date('YmdHis', filemtime($p)) . '.zip')->header('Content-Type', Files::_getMimeType($p))->header('X-Sendfile', $p);
}
}
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
-use Illuminate\Support\Facades\Artisan;
use Illuminate\View\View;
class ProducePackage implements ShouldQueue, ShouldBeUnique
{
ProcessFluidbook::dispatchSync();
SearchIndex::dispatchSync();
- //Artisan::call('media-library:regenerate --only-missing');
}