storage/logs/laravel.log) without requiring custom log storage solutions.grep-like filtering), which may impact performance for large log files (>100MB).resources/ directory).createTestResource()).storage/logs/*.log file watchers)./admin/logs) and Filament panel section.composer require achyutn/filament-log-viewer
php artisan vendor:publish --tag="filament-log-viewer-config"
app/Providers/Filament/AdminPanelProvider.php:
->plugin(FilamentLogViewerPlugin::make())
config/filament-log-viewer.php.php artisan tinker to generate test logs).single (default) and daily log drivers. Custom drivers (e.g., syslog, slack) may need adapter classes.file_get_contents, preg_* functions.user_id from context).post-update-cmd in composer.json to validate.composer why-not achyutn/filament-log-viewer.chmod -R 755 storage/logs), missing Filament dependencies, or custom log formats.debug: true in config to log package errors to Laravel logs.flock() or file locking.LOG_MAX_FILES in .env to limit file size (e.g., LOG_MAX_FILES=5).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Log file corruption | UI shows empty/garbled logs | Enable backup log rotation (LOG_BACKUP_COUNT). |
Permission denied on storage/logs |
Log viewer inaccessible | Ensure storage:link is run and permissions are 755. |
| Large log file (> |
How can I help you explore Laravel packages today?