LaravelPackages.net
Acme Inc.
Toggle sidebar
marvinosswald/filament-activity-log

This is my package filament-activity-log

1.857
0
0.3.3
About marvinosswald/filament-activity-log

marvinosswald/filament-activity-log is a Laravel package for this is my package filament-activity-log. It currently has 0 GitHub stars and 1.857 downloads on Packagist (latest version 0.3.3). Install it with composer require marvinosswald/filament-activity-log. Discover more Laravel packages by marvinosswald or browse all Laravel packages to compare alternatives.

Last updated

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.

Comments