1. Go to this page and download the library: Download devdavido/laravel-reporto 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/ */
devdavido / laravel-reporto example snippets
return [
/*
* Use this setting to enable the reporting API header
*/
'enabled' => env('REPORTING_API_ENABLED', true),
/*
* Enables the reporting API for all subdomains
*/
'of all endpoint in seconds (86400s = 1 day)
*/
'endpoint_max_age' => env('REPORTING_API_MAX_AGE', 86400),
/*
* Which types of browser errors to report
* @see https://w3c.github.io/reporting/
*/
'groups' => [
'default',
'csp-endpoint',
'network-errors'
],
/*
* If you want to set the logging route prefix
*/
'route_prefix' => 'log'
];