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/ */
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'
],
];