Zum Inhalt springen
← Zurück zu den Projekten

Filament Additional Information

Version: v3 v4 v5 · branch: 3.x

Filament Additional Information

#Filament Additional Information

Buy Me A Coffee

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

#Description

A reusable Filament infolist Section that shows record timestamps (such as created and updated dates) through a single make() factory. Pass any list of date columns and it renders a translated Section with one TextEntry per column, formatted as date-time. Use it to avoid hand-rolling the same "Additional Information" block on every resource infolist.

#Version Compatibility

Plugin Version Filament Version PHP Version
^1.0 ^3.0 ^8.1
^2.0 ^4.0 ^8.2
^3.0 ^5.0 ^8.3

#Installation

You can install the package via composer:

composer require jeffersongoncalves/filament-additional-information:^3.0

#Usage

Add the section to any Filament infolist schema. By default it renders the created_at and updated_at entries:

use JeffersonGoncalves\Filament\AdditionalInformation\AdditionalInformation;

public static function infolist(Schema $schema): Schema
{
    return $schema->components([
        // ... your other components
        AdditionalInformation::make(),
    ]);
}

Pass your own list of date columns to customize which timestamps are shown:

AdditionalInformation::make(['created_at', 'updated_at', 'deleted_at']);

#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.

Neue Version verfügbar.