wip
This commit is contained in:
1 parent
7e1960779b
commit
3c94fb0501
4 files changed
+70
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
$printLocation = "/var/www/sirk/backend/storage/app/public/tickets/{$booking->orderId}.pdf";
|
||||
$url = route('booking-ticket', ['q' => $request->q]);
|
||||
|
||||
$result = Process::run("/home/ubuntu/chrome-linux/chrome --headless --print-to-pdf=$printLocation $url --no-sandbox");
|
||||
|
||||
if ($result->successful()) {
|
||||
return redirect("https://atchylyksirk.gov.tm/storage/tickets/{$booking->orderId}.pdf");
|
||||
} else {
|
||||
return back();
|
||||
}
|
||||
Reference in new issue
Block a user