F
Filament11mo ago
Sydd

Logger plugin only for super_admin

Please anybody know how to set config logger plugin availably onyl for usres with role super-admin ?
6 Replies
pechtelt
pechtelt11mo ago
Maybe you can check this: https://log-viewer.opcodes.io/docs/3.x
Log Viewer
Introduction - Log Viewer Documentation
Log Viewer provides a user interface to easily read, search, and manage your Laravel logs. It's free and open-source with tons of features.
Sydd
SyddOP11mo ago
seems good, but at this moment (dont have time) need exactly for filament as plugin, do you know how to disable acces to any path / plugins for other users ?
LeandroFerreira
LeandroFerreira11mo ago
check the docs: https://filamentphp.com/plugins/z3d0x-logger#authorization ask in the #z3d0x-logger channel
Filament
Logger by ZedoX - Filament
Extensible activity logger for filament that works out-of-the-box.
janibek
janibek4mo ago
hi, this is solved ? guys. Logger showing all roles, i want to show only super_admin but not working, i this ->resources([ config('filament-logger.activity_resource') ]); this is may not. Any solution thanks
toeknee
toeknee4mo ago
You would just setup a laravel policy for that model.
janibek
janibek4mo ago
Thank you

Did you find this page helpful?