When Model::unguard() is used in Laravel projects, it is expected that the developer intends to unguard ALL Models without necessary setting $guarded = [] across all models.
This PR allows the shouldLogUnguarded method on the LogsActivity trait to respect Model::unguard();
shouldLogUnguarded is expected to return true whenever Model::unguard() has been invoked, of course, unless logUguarded has been explicitly set to false on the model's LogOptions.
When
Model::unguard()
is used in Laravel projects, it is expected that the developer intends to unguard ALL Models without necessary setting$guarded = []
across all models.This PR allows the
shouldLogUnguarded
method on theLogsActivity
trait to respectModel::unguard()
;shouldLogUnguarded
is expected to returntrue
wheneverModel::unguard()
has been invoked, of course, unlesslogUguarded
has been explicitly set tofalse
on the model'sLogOptions
.