1. Go to this page and download the library: Download suver/laravel-gelf-logger 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/ */
/**
* The ip address of the log server. If the value below is null,
* the default value '127.0.0.1' will be used.
*/
'host' => null,
/**
* The udp port of the log server. If the value below is null,
* the default value 12201 will be used.
*/
'port' => null
gelf()->alert('There was a foo in bar', ['foo' => 'bar']);