Download the PHP package alexjustesen/filament-spatie-laravel-activitylog without Composer
On this page you can find all versions of the php package alexjustesen/filament-spatie-laravel-activitylog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alexjustesen/filament-spatie-laravel-activitylog
More information about alexjustesen/filament-spatie-laravel-activitylog
Files in alexjustesen/filament-spatie-laravel-activitylog
Package filament-spatie-laravel-activitylog
Short Description View your activity logs inside of Filament.
License MIT
Homepage https://github.com/alexjustesen/filament-spatie-laravel-activitylog
Informations about the package filament-spatie-laravel-activitylog
View your activity logs inside of Filament.
This package provides a Filament resource that shows you all of the activity logs created using the spatie/laravel-activitylog
package. It also provides a relationship manager for related models.
Installation
[!WARNING] Version ^0.7 supports Filament v3.
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
This package will automatically register the ActivityResource
class specified in the configuration resource.filament-resource
. You'll be able to see it when you visit your Filament admin panel.
Customising the ActivityResource
You can swap out the ActivityResource
used by publishing the configuration file and updating the resource.filament-resource
value. Use this to create your own ActivityResource
class and extend the original at AlexJustesen\FilamentSpatieLaravelActivitylog\Resources\ActivityResource::class
. This will allow you to customise everything such as the views, table, form and permissions. If you wish to change the resource on List and View page be sure to replace the getPages
method on the new resource and create your own version of the ListPage
and ViewPage
classes to reference the custom ActivityResource
.
Customising the group
You can customise the navigation group for the ActivityResource
by publishing the configuration file and updating the resource.group
value.
Customising the sorting
You can customise the navigation group for the ActivityResource
by publishing the configuration file and updating the resource.sort
value.
Relationship manager
If you have a model that uses the Spatie\Activitylog\Traits\LogsActivity
trait, you can add the AlexJustesen\FilamentSpatieLaravelActivitylog\RelationManagers\ActivitiesRelationManager
relationship manager to your Filament resource to display all of the activity logs that are performed on your model.
Show the subject
column on custom relation managers
When using the relationship manager the subject
column isn't shown because the subject is the parent record. There are some cases (like when aggregating activities from child records) where the subject might be another record, and you want to show this column. In those cases you can add the next code to your relation manager:
Testing
Changelog
Please see RELEASES 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
- Alex Justesen
- Ryan Chandler (Original creator)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-spatie-laravel-activitylog with dependencies
filament/filament Version ^3.0
illuminate/contracts Version ^8.0 || ^9.0 || ^10.0
spatie/laravel-activitylog Version ^4.3
spatie/laravel-package-tools Version ^1.9.2