pxlrbt / filament-activity-log

Spatie activity log integration into Filament
MIT License
126 stars 24 forks source link

Restore doesn't do anything #17

Closed kirkbushell closed 10 months ago

kirkbushell commented 11 months ago

There are no requests being made to the server, and so no reversion is actually done when clicking the button.

Have tested this numerous times across a bunch of resources.

albertobenavides commented 10 months ago

I have used this function just now. Have you added this into the model?

use LogsActivity;

public function getActivitylogOptions(): LogOptions
{
    return LogOptions::defaults()
        ->logOnly(['*']);
}
kirkbushell commented 10 months ago

I have. Though I wouldn't log everything, good way of sensitive data showing up in logs.

albertobenavides commented 10 months ago

Oh, yeah, hahaha. Just an example. You should only log non sensible data :)

pxlrbt commented 10 months ago

Since it's working for some people, could you provide a reproduction repo so I can have a look at it?