Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

khoaduongdev's avatar

Running Laravel Dusk with Vapor

Hi all,

Is it possible to run Dusk with Laravel Vapor (which is serverless and we need Chrome driver for Dusk to work) ?

I am using Dusk as a crawler in my application and it works all fine in my dev environment. The reason I use Dusk is because pretty much most websites run on JS nowadays.

When I try to run the below command: php artisan dusk:chrome-driver with vapor, I got the below error:

In ChromeDriverCommand.php line 195:  file_put_contents(/var/task/vendor/laravel/dusk/src/Console/../../bin/chrom  
  edriver.zip): failed to open stream: Read-only file system

If Dusk does not work with Vapor, is there any crawler that can wait for Javascript to be executed?

I am not able to find anyway to contact Vapor support team so I have to post my question here

0 likes
1 reply

Please or to participate in this conversation.