Download the PHP package z3d0x/filament-logger without Composer
On this page you can find all versions of the php package z3d0x/filament-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download z3d0x/filament-logger
More information about z3d0x/filament-logger
Files in z3d0x/filament-logger
Package filament-logger
Short Description Activity logger for filament
License MIT
Homepage https://github.com/z3d0x/filament-logger
Informations about the package filament-logger
Activity logger for filament
Configurable activity logger for filament.
Powered by spatie/laravel-activitylog
Features
You can choose what you want to log and how to log it.
- Log Filament Resource Events
- Log Login Event
- Log Notification Events
- Log Model Events
- Easily extendable to log custom events
Note: By default this package will log Filament Resource Events, Access(Login) Events, and Notification Events. If you want to log a model that is not a FilamentResource you will have to manually register in the config file.
Installation
Plugin Version | Filament Version |
---|---|
< 0.5.x | ^2.11 |
>= 0.6.0 | 3.x |
This package uses spatie/laravel-activitylog, instructions for its setup can be found here
You can install the package via composer:
After that run the install command:
This will publish the config & migrations from spatie/laravel-activitylog
For Filament v3, you need to register a resource in PanelProvider
Authorization
To enforce policies on ActivityResource
, after generating a policy, you would need to register Spatie\Activitylog\Models\Activity
to use that policy in the AuthServiceProvider.
If you are using Shield just register the ActivityPolicy generated by it
Translations
Publish the translations using:
Activity Model resolution
The main Activity
class being used by the Filament Resource instance will be resolved by Spatie's service provider, which loads the model defined by the configuration key found at activitylog.activity_model
in config/activitylog.php
.
Screenshots
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
- Ziyaan Hassan
- Spatie Activitylog Contributors
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-logger with dependencies
filament/filament Version ^3.0
illuminate/contracts Version ^8.0 | ^9.0 | ^10.0 | ^11.0
spatie/laravel-activitylog Version ^4.5
spatie/laravel-package-tools Version ^1.13.5