PHP code example of jeffersongoncalves / filament-metrics-fathom
1. Go to this page and download the library: Download jeffersongoncalves/filament-metrics-fathom 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/ */
jeffersongoncalves / filament-metrics-fathom example snippets
use JeffersonGoncalves\Filament\MetricsFathom\FathomMetricsPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(FathomMetricsPlugin::make());
}
FathomMetricsPlugin::make()
->settingsPage(false) // Disable the settings page
->widgets(false) // Disable all widgets
bash
php artisan vendor:publish --tag="metrics-fathom-settings"
php artisan migrate
bash
php artisan vendor:publish --tag="filament-metrics-fathom-translations"