Jul 16, 2024
0
Level 8
How can I use Puppeteer in Laravel?
Hello,
I've been using Spatie Browsershot for some time but it has many issues, some bugs related to different node/npm/php/laravel versions and it's hard to get it to work properly every time.
I would like to try to use Puppeteer directly, but I've never used an NPM package directly in Laravel (always via another PHP package for Laravel).
For example, the Puppeteer example code: https://pptr.dev/#example
Where do I place this code? Where do I use the import syntax in Laravel to make it work?
Would love to get even the simplest working example to get an idea
Thanks
Please or to participate in this conversation.