marvinosswald/filament-activity-log

This is my package filament-activity-log
1,857
Install
composer require marvinosswald/filament-activity-log
Latest Version:0.3.3
PHP:^8.1
License:MIT
Last Updated:Jul 8, 2024
Links: GitHub  ·  Packagist
Maintainer: marvinosswald

Activity Log for Filament

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

This is a Infolist Entry which displays log line from https://github.com/spatie/laravel-activitylog.

Installation

You can install the package via composer:

composer require marvinosswald/filament-activity-log

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-activity-log-views"

Usage

ActivityLogEntry::make()
->with('shippingAddress.activities')
->formatDescriptionUsing(fn(Activity $activity) => $activity->description)
->formatSubjectUsing(function (Activity $activity) {
    if ($activity->subject_type == OrderAddress::class) {
        return __("models.{$activity->subject_type}", ['type' => $activity->subject->type]);
    }
    return __("models.{$activity->subject_type}");
})

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.

Related Packages

noxoua/filament-activity-log

A Laravel package that simplifies activity logging in the Filament admin panel,...

56,108 72
marvinosswald/filament-input-select-affix

this input enables you to render a select next to an input in a seamless fashion

147,603 26
noin/filament-activity-log

A Laravel package that simplifies activity logging in the Filament admin panel,...

2,429 2
waseet/filament-activity-log

A Laravel package that simplifies activity logging in the Filament admin panel,...

421
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

634,760,849 9,707