Helpers Collection
Visit this package on GitHub

Spatie Laravel-activitylog

This Trait logs model activities with default name (see examples) except created_at, updated_at and hidden attributes.

use NormanHuth\HelpersLaravel\Traits\Spatie\LogsActivityTrait;
 
class Page extends Model
{
use LogsActivityTrait;
}

Example Log Names

Model Logname
Post posts
PostComment posts
PostCommentReaction posts
User users