1. Go to this page and download the library: Download diepxuan/laravel-log 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/ */
diepxuan / laravel-log example snippets
use Diepxuan\Log\Log;
$log = app(Log::class);
$log->info('channel-name', 'Message log', ['context' => 'value']);
// Hoặc các phương thức khác: debug, notice, warning, error, critical, alert, emergency.