filipfonal/filament-log-manager

Filament Log Manager

2.1.0 2025-03-09 22:43 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A simple and clear interface to preview, download and delete Laravel log files using Filament Admin.

Filament Admin Panel

This package is tailored for Filament Admin Panel.

Make sure you have installed the admin panel before you continue with the installation. You can check the documentation here

Installation

You can install the package via composer:

composer require filipfonal/filament-log-manager

After that, you can register the plugin in the Filament Panel Provider (This is by default AdminPanelProvider.php)

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            ...
            \FilipFonal\FilamentLogManager\FilamentLogManager::make(),
        ]);
}

You can publish the config file with:

php artisan vendor:publish --tag="filament-log-manager-config"

You can publish translations files with:

php artisan vendor:publish --tag="filament-log-manager-translations"

To ensure correct styling, make sure the logs blade file is included in your panel's theme. See example below

import preset from '../../../vendor/filament/filament/tailwind.config.preset'

export default {
    presets: [preset],
    content: [
        './app/Filament/**/*.php',
        './vendor/filipfonal/filament-log-manager/resources/views/pages/logs.blade.php',
        ...
    ],
    ...

Usage

Once installed, the package is ready to use. You will be able to see it in your Filament admin panel.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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