The trait Spatie\Activitylog\Traits\LogsActivity requires some properties which are not provided by Pratiksh\Adminetic\Models\Admin\Data: $submitEmptyLogs, $name, $logExceptAttributes, $attributeRawValues, $dontLogIfAttributesChangedOnly, $descriptionForEvent, $logOnlyDirty, $logFillable, $value, $logUnguarded, $logAttributes
Loading history...
13
14
protected $guarded = [];
15
16
// Forget cache on updating or saving and deleting
17
public static function boot()
18
{
19
parent::boot();
20
21
static::saving(function () {
22
self::cacheKey();
23
});
24
25
static::deleting(function () {
26
self::cacheKey();
27
});
28
}
29
30
// Cache Keys
31
private static function cacheKey()
32
{
33
Cache::has('data') ? Cache::forget('data') : '';
34
}
35
36
// Logs
37
protected static $logName = 'data';
38
39
public function getActivitylogOptions(): LogOptions