PHP code example of isbkch / laravel5-tail

1. Go to this page and download the library: Download isbkch/laravel5-tail 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/ */

    

isbkch / laravel5-tail example snippets


// config/app.php

'providers' => [
    ...
    Isbkch\Tail\TailServiceProvider::class,
    ...
];


return [


    'connections' => [

        /*
         * The environment name. You can use this value in the tail command.
         */
        'production' => [

             // Hostname of the server where the logs are located
            'host' => '',


             // Username to be used when connecting to the server where the logs are located
            'user'  => env('TAIL_USERNAME', 'isbkch'),

             // Full path to the directory where the logs are located
            'logDirectory' => '',
        ],

        // Change it to 'true' if you have grc (Generic Colouriser) installed in your system
        // To install grc on Debian based: sudo apt-get install grc
        'grc' => 'false'
    ],
];

 bash
php artisan vendor:publish --provider="Isbkch\Tail\TailServiceProvider"
 bash
php artisan tail
 bash
php artisan tail --lines=50
 bash
php artisan tail production