PHP code example of mdmnv / filament-database-viewer
1. Go to this page and download the library: Download mdmnv/filament-database-viewer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mdmnv / filament-database-viewer example snippets
'providers' => [
// ...
Mdmnv\FilamentDatabaseViewer\DatabaseBrowserServiceProvider::class,
],
use Mdmnv\FilamentDatabaseViewer\Filament\Pages\DatabaseBrowserPage;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->pages([
DatabaseBrowserPage::class,
]);
}
bash
php artisan vendor:publish --tag=database-browser-config
php artisan vendor:publish --tag=database-browser-views
php artisan vendor:publish --tag=database-browser-translations