sridhar-s-subramanian/filament-dbview
EXPLAIN/EXPLAIN ANALYZE features could impact production DBs if overused. Mitigation: Rate-limiting or restricting access to trusted roles.Schema::getConnection() extensions or hybrid approaches.SELECT queries (e.g., SHOW TABLES, DESCRIBE)? If so, the package’s scope may be insufficient..env credentials).composer require sridhar-s-subramanian/filament-dbview
php artisan vendor:publish --provider="FilamentDbView\FilamentDbViewServiceProvider"
config/filament-dbview.php) to customize:
cache driver).use FilamentDbView\FilamentDbViewPlugin;
return [
FilamentDbViewPlugin::make(),
// ... other plugins
];
canAccessDbViewer).public function canAccessDbViewer(User $user): bool {
return $user->isAdmin(); // Custom logic
}
EXPLAIN, exports, and relationship previews)./filament/resources). Use unique route prefixes if needed.EXPLAIN results if DB supports it.EXPLAIN results).EXPLAIN results for frequent queries).throttle middleware).EXPLAIN ANALYZE can be resource-intensive. Restrict to non-production environments if needed.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| DB connection issues | UI becomes unusable. | Fallback to read-only mode or graceful error. |
| Unauthorized access | Data leakage. | Strict Filament policies + audit logs. |
| Slow queries | UI timeouts, poor UX. | Query timeouts, caching, or disabling heavy ops. |
| Plugin conflicts (Filament) | Routes/UI breaks. | Isolate routes or test in a clean environment. |
| Large table crashes | Server |
How can I help you explore Laravel packages today?