You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
forge@server:~$ which chromium-browser
/usr/bin/chromium-browser
And then I use that path in my controller, with setChromePath command:
Pdf::view('test')->withBrowsershot(function (Browsershot $browsershot) {
$browsershot->setChromePath("/usr/bin/chromium-browser")
->setCustomTempPath(storage_path());
})->save($this->targetPath);```
Try it, if you want...
Have a nice day.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I spend some times to figure out how can i use Laravel-Pdf package on my ARM64 Ubuntu 22.04 servers.
I've tested this method on several servers with success.
All of my servers are deployed by Forge with defaults.
After my project deployed to the server, in terminal install puppeteer and chromium:
I checked where is the Chromium-Browser
And then I use that path in my controller, with setChromePath command:
Beta Was this translation helpful? Give feedback.
All reactions