PHP code example of sinemacula / laravel-log-database
1. Go to this page and download the library: Download sinemacula/laravel-log-database 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/ */
sinemacula / laravel-log-database example snippets
Log::warning('Cache miss rate is high', ['rate' => 0.82]);
use Illuminate\Support\Facades\Schedule;
use SineMacula\Log\Database\Models\LogMessage;
Schedule::command('model:prune', ['--model' => LogMessage::class])->daily();