PHP code example of hyvor / laravel-playwright
1. Go to this page and download the library: Download hyvor/laravel-playwright library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hyvor / laravel-playwright example snippets
return [
// ...
'e2e' => [
/**
* The prefix for the testing endpoints that are used to interact with Playwright
* Make sure to change `use.laravelBaseUrl` in playwright.config.ts if you change this
*/
'prefix' => 'playwright',
/**
* The environments in which the testing endpoints are enabled
* CAUTION: Enabling the testing endpoints in production can be a critical security issue
*/
'environments' => ['local', 'testing'],
],
];