PHP code example of clowdy / laravel-raven

1. Go to this page and download the library: Download clowdy/laravel-raven 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/ */

    

clowdy / laravel-raven example snippets


Clowdy\Raven\RavenServiceProvider::class,

'Raven' => Clowdy\Raven\Facades\Raven::class,

RAVEN_DSN=your-raven-dsn

RAVEN_QUEUE_CONNECTION=redis
RAVEN_QUEUE_NAME=error

Log::error($exception);

// or

logger()->error($exception);
	
RAVEN_LEVEL=error

Raven::getLastEventId();

Log::error('Oops, Something went wrong', [
    'user' => ['name' => $user->name, 'email' => $user->email]
]);

'processors' => [
    Clowdy\Raven\Processors\UserDataProcessor::class,
],

'processors' => [
    new Clowdy\Raven\Processors\UserDataProcessor([
        'only' => ['id', 'username', 'email'], // This is ['id'] by default; pass [] or null to 

'processors' => [
    Clowdy\Raven\Processors\LocaleProcessor::class,
],
bash
$ php artisan vendor:publish