Answers for "activity log laravel spatie"

PHP
0

spatie/laravel-activitylog display only changed data

protected static $logAttributes = [];     

public static function boot()
{
    parent::boot();
    static::saving(function (Model $model) {
        static::$logAttributes = array_keys($model->getDirty());
    });
}
Posted by: Guest on August-29-2020

Browse Popular Code Answers by Language