rupadana/filament-timeago

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

Fund package maintenance!
rupadana

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 4

Language:JavaScript


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.