In order for the activity log exposed by filament-logger to show users managed by this package, the FilamentUser model needs a method like so:
/**
* Return a name.
*
* Needed for compatibility with filament-logger.
*/
public function getNameAttribute(): string
{
return $this->getFilamentName();
}
It's a really minor thing, but it ensures that the user who caused an event is clearly visible.
In order for the activity log exposed by filament-logger to show users managed by this package, the
FilamentUser
model needs a method like so:It's a really minor thing, but it ensures that the user who caused an event is clearly visible.