Download the PHP package tapp/filament-authentication-log without Composer
On this page you can find all versions of the php package tapp/filament-authentication-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tapp/filament-authentication-log
More information about tapp/filament-authentication-log
Files in tapp/filament-authentication-log
Package filament-authentication-log
Short Description Filament authentication log plugin.
License MIT
Homepage https://github.com/TappNetwork/filament-authentication-log
Informations about the package filament-authentication-log
Filament Authentication Log
A Filament plugin for Laravel Authentication Log package.
This package provides a Filament resource and a relation manager for Laravel Authentication Log.
Requirements
- PHP 8.1+
- Filament 3
Dependencies
Version Compatibility
Filament | Laravel | Filament Authentication Log |
---|---|---|
2.x | 9.x/10.x | 2.x |
3.x | 10.x/11.x | 3.0.x/3.1.x |
Installation
You can install the plugin via Composer:
Follow the configuration instruction for laravel-authentication-log
- Publish and run the migrations
- Add the
AuthenticationLoggable
andNotifiable
traits to yourUser
model
Note For Filament 2.x check the 2.x branch
You can publish the translations files with:
You can publish the config file with:
Using the Resource
Add this plugin to a panel in the plugins()
method.
E.g., in app/Providers/Filament/AdminPanelProvider.php
:
That's it! Now you can see the Authentication Log resource on left sidebar.
This customization ->panelName('admin')
allows for better organization if you have multiple panels, such as Developer and Admin panels, where the FilamentAuthenticationLogPlugin
is used in one panel but the user resource is available only in another panel.
Resource appearance
Using the Relation Manager
Add the Tapp\FilamentAuthenticationLog\RelationManagers\
to the getRelations()
method on the Filament resource where the model uses the AuthenticationLoggable
trait.
E.g. in App\Filament\Resources\UserResource.php
:
Relation manager appearance
Displaying Authenticatable Names
To display the actual name of the authenticatable user instead of the class name, you can configure the plugin to show a specific field. By default, it will use the name
field if available. If your model does not have a name
column, you can add a custom attribute:
In your model:
Configuration
To specify a custom field to display for the authenticatable user, update the config/filament-authentication-log.php
configuration file:
All versions of filament-authentication-log with dependencies
filament/filament Version ^3.0-stable
rappasoft/laravel-authentication-log Version ^4.0
spatie/laravel-package-tools Version ^1.9