wip
This commit is contained in:
12
ok.html
Normal file
12
ok.html
Normal file
@@ -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