Added book export and created export tests to cover

In reference to #177
This commit is contained in:
Dan Brown
2017-02-26 13:26:51 +00:00
parent 0abed1afe5
commit eded8abded
11 changed files with 306 additions and 15 deletions

View File

@ -439,7 +439,6 @@ class PageController extends Controller
{
$page = $this->entityRepo->getBySlug('page', $pageSlug, $bookSlug);
$pdfContent = $this->exportService->pageToPdf($page);
// return $pdfContent;
return response()->make($pdfContent, 200, [
'Content-Type' => 'application/octet-stream',
'Content-Disposition' => 'attachment; filename="' . $pageSlug . '.pdf'