rupadana/filament-timeago

Display the age of each record, indicating when it was created, updated, and (if applicable) deleted.

Maintainers

Package info

github.com/rupadana/filament-timeago

Language:JavaScript

pkg:composer/rupadana/filament-timeago

Fund package maintenance!

rupadana

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 4


README

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

Display the age of each record, indicating when it was created, updated, and (if applicable) deleted.

Installation

You can install the package via composer:

composer require rupadana/filament-timeago

Usage

public static function table(Table $table): Table
{
    return $table
        ->columns([
            TimeAgoColumn::make('created_at')
                ->dateLabel(
                    years: 'years',
                    months: 'months',
                    days: 'days',
                    hours: 'hours',
                    minutes: 'minutes',
                    seconds: 'seconds'
                ) // Optional
                ->interval(1000) // Optional, default : 0
                ->prefixText('string') // Optional
                ->suffixText('string') // Optional
        ])
}

Changelog

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

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.