Closed abbasmashaddy72 closed 5 months ago
Usage of this:
FilamentAuthenticationLogPlugin::make()->panelName('admin')
However, this is optional
Why I did this?
FilamentAuthenticationLogPlugin
$record->authenticatable->name
This will show the name of the Actual username instead of Class Name, which will be good when seeing all the logs at a time.
Below Code to use in Model if you don't have name column:
public function getNameAttribute(): string { return trim($this->first_name . ' ' . $this->last_name); }
Usage of this:
FilamentAuthenticationLogPlugin::make()->panelName('admin')
However, this is optional
Why I did this?
FilamentAuthenticationLogPlugin
will be used only in developer, but user Resource will be available in admin panel only.$record->authenticatable->name
This will show the name of the Actual username instead of Class Name, which will be good when seeing all the logs at a time.
Below Code to use in Model if you don't have name column: