Combined database viewer and query builder for FilamentPHP - A comprehensive tool for database management
filaforge/filament-database-tools is a Laravel package for combined database viewer and query builder for filamentphp - a comprehensive tool for database management.
It currently has 1 GitHub stars and 13 downloads on Packagist (latest version v1.0.0).
Install it with composer require filaforge/filament-database-tools.
Discover more Laravel packages by filaforge
or browse all Laravel packages to compare alternatives.
Last updated
A comprehensive Filament plugin that provides essential database management tools directly in your admin panel.
composer require filaforge/database-tools
# Publish provider groups (config, views, migrations)
php artisan vendor:publish --provider="Filaforge\\DatabaseTools\\Providers\\DatabaseToolsServiceProvider"
# 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\DatabaseTools\DatabaseToolsPlugin::make());
}
The plugin will automatically:
config/database-tools.phpresources/views/vendor/database-tools/database/migrations/Configure database tools in the published config file:
// config/database-tools.php
return [
'backup' => [
'enabled' => true,
'path' => storage_path('backups/database'),
'retention_days' => 30,
],
'import' => [
'max_file_size' => '10MB',
'allowed_extensions' => ['csv', 'xlsx', 'json'],
],
'export' => [
'chunk_size' => 1000,
'timeout' => 300,
],
'permissions' => [
'admin_only' => true,
'allowed_roles' => ['admin', 'database_manager'],
],
];
Add these to your .env file if needed:
DB_TOOLS_BACKUP_ENABLED=true
DB_TOOLS_BACKUP_PATH=storage/backups/database
DB_TOOLS_MAX_FILE_SIZE=10MB
php artisan config:show database-tools
php artisan route:list | grep database-tools
php artisan tinker
# Test database connection manually
ls -la storage/backups/database
php artisan optimize:clear
tail -f storage/logs/laravel.log
Remove the plugin from your panel provider:
// remove ->plugin(\Filaforge\DatabaseTools\DatabaseToolsPlugin::make())
php artisan migrate:rollback
# or roll back specific published files if needed
rm -f config/database-tools.php
rm -rf resources/views/vendor/database-tools
composer remove filaforge/database-tools
php artisan optimize:clear
rm -rf storage/backups/database
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