Database viewer plugin: Database viewer with table browser and data explorer
filaforge/filament-database-viewer is a Laravel package for database viewer plugin: database viewer with table browser and data explorer.
It currently has 0 GitHub stars and 225 downloads on Packagist (latest version v1.0.0).
Install it with composer require filaforge/filament-database-viewer.
Discover more Laravel packages by filaforge
or browse all Laravel packages to compare alternatives.
Last updated
A powerful Filament plugin that provides a comprehensive database viewing and exploration interface directly in your admin panel.
composer require filaforge/database-viewer
# Publish provider groups (config, views, migrations)
php artisan vendor:publish --provider="Filaforge\\DatabaseViewer\\Providers\\DatabaseViewerServiceProvider"
# Run migrations
php artisan migrate
Add the plugin to your Filament panel provider:
use Filament\Panel;
public function panel(Panel $panel): Panel
{
return $panel
// ... other configuration
->plugin(\Filaforge\DatabaseViewer\DatabaseViewerPlugin::make());
}
The plugin will automatically:
config/database-viewer.phpresources/views/vendor/database-viewer/database/migrations/Configure the viewer in the published config file:
// config/database-viewer.php
return [
'connections' => ['mysql', 'pgsql', 'sqlite'],
'max_rows_per_page' => 100,
'enable_search' => true,
'enable_export' => true,
'allowed_operations' => ['SELECT', 'SHOW', 'DESCRIBE'],
'cache_results' => true,
'cache_ttl' => 300, // 5 minutes
];
Add these to your .env file if needed:
DB_VIEWER_ENABLED=true
DB_VIEWER_MAX_ROWS=100
DB_VIEWER_CACHE_TTL=300
php artisan config:show database-viewer
php artisan route:list | grep database-viewer
php artisan tinker
# Test database connection manually
# Verify the database user has SELECT privileges
php artisan optimize:clear
tail -f storage/logs/laravel.log
Remove the plugin from your panel provider:
// remove ->plugin(\Filaforge\DatabaseViewer\DatabaseViewerPlugin::make())
php artisan migrate:rollback
# or roll back specific published files if needed
rm -f config/database-viewer.php
rm -rf resources/views/vendor/database-viewer
composer remove filaforge/database-viewer
php artisan optimize:clear
We welcome contributions! Please see our Contributing Guide for details.
This plugin is open-sourced software licensed under the MIT license.
Made with ❤️ by the Filaforge Team