How to Spatie Activity Log Customize?
how to Spatie Activity Log customize I want show all recorde for admin just and another user can show all records logs without admin's records
6 Replies
Not filament related question. Check packages docs
If you want to show them on a ListPage you need to set the query to use a where on the column that holds the created by data.
But you provide no example of what you are trying/tried so it’s hard to help
Spatie Activity Log is plugin how to customize on it .
example select all records from table Activity_Log if User is admin but it is'nt admin show all records without admin's record @Dennis Koch
It doesn't help if you just repeat the same info.
Yes, Spatie Activity Log is a plugin. But on it's own there is no relation to Filament.
example select all records from table Activity_Log if User is admin but it is'nt admin show all records without admin's recordThis is just a Laravel Eloquent question. Use
where()
to filter your query:
where Can I write this code ?
Whereever you use your the activities.
As I said: You don't provide much information to help you