Download the PHP package pxlrbt/filament-activity-log without Composer
On this page you can find all versions of the php package pxlrbt/filament-activity-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pxlrbt/filament-activity-log
More information about pxlrbt/filament-activity-log
Files in pxlrbt/filament-activity-log
Package filament-activity-log
Short Description Spatie's Laravel Activity Log integrated into Filament
License MIT
Informations about the package filament-activity-log
Filament Activity Log
This package adds a page to the Filament Admin panel to view the activity log generated by spatie/laravel-activitylog
.
Installation
Plugin Version | Filament Version | PHP Version |
---|---|---|
0.1.x | 2.x | > 8.0 |
1.x | 3.x | > 8.1 |
Install via Composer.
Requires PHP 8.0 and Filament 2.0
Warning This plugin only offers a page to show activities related to your model. You need
spatie/laravel-activitylog
installed and configured for it to work. It is important you are using theLogsActivity
trait as per Spatie's docs for this work as we use the '->activities()' method of the trait.
Usage
Make sure you use a custom theme and the vendor folder for this plugins is published, so that it includes the Tailwind CSS classes.
Create a page
Create the page inside your resources Pages/
directory. Replace UserResource
with your resource.
Register the page
Add the page to your resource's getPages()
method.
Link to your page
Use a Filament action to link to your from your table or page.
Contributing
If you want to contribute to this packages, you may want to test it in a real Filament project:
- Fork this repository to your GitHub account.
- Create a Filament app locally.
- Clone your fork in your Filament app's root directory.
- In the
/filament-activity-log
directory, create a branch for your fix, e.g.fix/error-message
.
Install the packages in your app's composer.json
:
Now, run composer update
.
All versions of filament-activity-log with dependencies
filament/filament Version ^3.0.5.0
spatie/laravel-activitylog Version ^4.7