PHP code example of lucasrolff / laravel-filebeat

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

    

lucasrolff / laravel-filebeat example snippets


return [
    'channels' => [
        'filebeat' => [
            'driver' => 'daily',
            'path' => env('APP_LOG_PATH', '/application/logs/app.log'),
            'tap' => [Lucasrolff\Log\LogFormatter::class],
            'days' => 7,
        ],
    ],
];

protected $middleware = [
    // ...
    \Lucasrolff\Log\HandleApplicationLog::class,
];