PHP code example of igormatkovic / laravel-livelogger

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

    

igormatkovic / laravel-livelogger example snippets


    //'Illuminate\Log\LogServiceProvider',

    'Igormatkovic\Livelogger\LiveloggerServiceProvider',

    'Log'       => 'Illuminate\Support\Facades\Log',

    'Log'       => 'Igormatkovic\Livelogger\Facades\Livelogger'

return array(

    'log_level'         => (getenv('log_level') ?: 'error'),
    'dateformat'        => (getenv('dateformat') ?: 'H:i:s'),
    'channel_name'      => (getenv('channel_name') ?: 'livelogger'),
    'pusher_app_id'     => (getenv('pusher_app_id') ?: 'pusher_app_id'),
    'pusher_api_key'    => (getenv('pusher_api_key') ?: 'pusher_api_key'),
    'pusher_api_secret' => (getenv('pusher_api_secret') ?: 'pusher_api_secret'),
    'pusher_use_ssl'    => (getenv('pusher_use_ssl') ?: false),
);
bash
    php artisan config:publish igormatkovic/laravel-livelogger
bash
    php artisan livelogger:generate