diff --git a/app/DataMapper/Analytics/LivePreview.php b/app/DataMapper/Analytics/LivePreview.php new file mode 100644 index 000000000000..818c4bf18b33 --- /dev/null +++ b/app/DataMapper/Analytics/LivePreview.php @@ -0,0 +1,51 @@ +getCompiledHTML(true), auth()->user()->company()); + if(Ninja::isHosted()) + { + LightLogs::create(new LivePreview()) + ->increment() + ->batch(); + } + + $response = Response::make($file_path, 200); - $response->headers->set('Content-Type', 'application/pdf'); + $response->header('Content-Type', 'application/pdf'); return $response;