transistorized-cmd/filament-route-statistics

This is my filament package for bilfeldt/laravel-route-statistics

v0.1.0 2024-09-19 23:13 UTC

This package is auto-updated.

Last update: 2025-04-20 01:11:16 UTC


README

A Filament interface for bilfeldt/laravel-route-statistics

transistorized-cmd/filament-route-statistics

Software License

This package provides a Filament interface that displays the route statistics generated by the bilfeldt/laravel-route-statistics package.

Requirements

  • Laravel v11
  • Filament v3
  • bilfeldt/laravel-route-statistics v3

Languages Supported

The RouteStatistics plugin is translated for:

  • 🇺🇸 English
  • 🇲🇽 Spanish (mx)

transistorized-cmd/filament-route-statistics

transistorized-cmd/filament-route-statistics

Installation

You can install the package via Composer:

composer require transistorized-cmd/filament-route-statistics

Activate the plugin in your panel:

use Transistorizedcmd\RouteStatistics\RouteStatisticsPlugin;

public function panel(Panel $panel): Panel
    {
        return $panel
            ->plugins([
                RouteStatisticsPlugin::make()
            ]);
    }

You can publish the config file (recommended)

php artisan vendor:publish --tag="filament-route-statistics-config"

To publish translations

php artisan vendor:publish --tag="filament-route-statistics-translations"

Configuration

Below are the contents of the published config file:

return [
    'resources' => [
        'navigation_group' => 'System',
        'navigation_icon' => 'heroicon-o-chart-bar-square',
        'navigation_sort' => 190,
        'default_sort_column' => 'id',
        'default_sort_direction' => 'desc',
        'navigation_count_badge' => false,
        'resource' => \Transistorizedcmd\RouteStatistics\Resources\RouteStatisticsResource::class
    ],
    'datetime_format' => 'd/m/Y H:i:s',
    'username' => 'name'
];

License

The MIT License (MIT). Please see License File for more information.