In a function of class i have this code
public function ....
...
$command = 'php artisan dusk --filter=FetchSingleProductDetailTest';
$output = shell_exec($command);
...
It worked in local environment but not on a production environment, running the manual command php artisan dusk --filter=FetchSingleProductDetailTest
on production environment ran successfully, no errors but could not run with the code
i try to follow with this post but it’s return the error The "pest" option does not exist.
, even though i installed pestphp/pest-plugin-laravel, pestphp/pest
and ran the command php artisan pest:install
.
Any solutions to fix this problem?