PHP code example of sevendaysdigital / simple-filament-logs
1. Go to this page and download the library: Download sevendaysdigital/simple-filament-logs 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/ */
sevendaysdigital / simple-filament-logs example snippets
use SevendaysDigital\SimpleFilamentLogs\Facades\SimpleLogger;
$model = \App\Models\Model::first();
// Log as user.
SimpleLogger::error('Query failed with', on: $model, by: Auth::user());
// Log as system.
SimpleLogger::success('Query ok');
// Simple log without related entity.
SimpleLogger::warning('Query ok');
bash
php artisan migrate