1. Go to this page and download the library: Download avto-dev/sentry-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
return [
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single', 'sentry'], // Add the Sentry log channel to the stack
],
// ...
],
];
return [
'channels' => [
// ...'sentry' => [
'driver' => 'sentry',
'level' => null, // The minimum monolog logging level at which this handler will be triggered// For example: `\Monolog\Logger::ERROR`'bubble' => true, // Whether the messages that are handled can bubble up the stack or not
],
],
];