cyve/logviewer-bundle
Symfony bundle that adds a lightweight log viewer to your app. Install via Composer, enable the bundle, and import its routes. Super admins (ROLE_SUPER_ADMIN) can browse application logs at /logs to quickly inspect recent entries and errors.
symfony/console or symfony/http-foundation).ROLE_SUPER_ADMIN)—useful for admin dashboards but requires Laravel’s auth system to align.symfony/console for CLI log handling, symfony/http-kernel for routing).var/log/). Laravel’s log storage (e.g., storage/logs/) would need mapping.symfony/routing, twig) that may conflict with Laravel’s ecosystem.ROLE_SUPER_ADMIN map to Laravel’s gate/policy system?laravel-debugbar or spatie/laravel-log-viewer been considered?| Component | Symfony Fit | Laravel Fit | Workaround Needed? |
|---|---|---|---|
| Routing | ✅ Native | ❌ No | Use Laravel’s Route::get() with a controller proxy. |
| Templating | ✅ Twig | ❌ Blade | Rewrite Twig templates to Blade or use a hybrid setup. |
| Logging | ✅ Monolog | ✅ Monolog | Ensure log handlers are compatible (e.g., same format). |
| Authentication | ✅ Symfony Security | ✅ Laravel Auth | Map ROLE_SUPER_ADMIN to Laravel’s gates. |
| CLI Tools | ✅ Symfony Console | ❌ No | Use symfony/console bridge or rewrite CLI commands. |
cyve/logviewer-bundle in a separate Symfony micro-app (via Docker/Laravel Forge) and proxy requests.super_admin users to Symfony’s ROLE_SUPER_ADMIN (e.g., via database or OAuth).twig/twig or symfony/routing may conflict with Laravel’s versions.replace to avoid version conflicts.if (auth()->user()->isSuperAdmin()) { ... }).memory_limit).| Scenario | Symfony Impact | Laravel Impact | Mitigation |
|---|---|---|---|
| Log Format Change | ❌ Breaks parsing | ❌ Breaks parsing | Freeze Monolog format via config. |
| Symfony Dependency Update | ⚠️ May require tweaks | ❌ High risk (e.g., Twig breaking) | Pin versions in composer.json. |
| Auth System Mismatch | ❌ Access denied | ❌ Super admins locked out | Sync roles via middleware. |
| High Log Volume | ✅ Handles well | ⚠️ Slow parsing | Add Redis caching for log queries. |
| Bundle Abandoned | ⚠️ No updates | ❌ No Laravel-specific fixes | Fork and maintain as private package. |
How can I help you explore Laravel packages today?