You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spatie\Activitylog\ActivityLogger::useLog(): Argument #1 ($logName) must be of type string, null given, called in ../laravel-activitylog/src/helpers.php on line 14
Expected behavior
Since the database table schema supports a nullable log_name, we should be able to create log entries with a null log name instead of an empty string, so that we may use Activity::whereNull('log_name').
The text was updated successfully, but these errors were encountered:
Describe the bug
The
activity_log
schema forlog_name
isnullable()
, yet settingdefault_log_name
inside of the configuration breaks logging entirely.To Reproduce
Set
activity_log_name
tonull
, then try logging:Exception
Expected behavior
Since the database table schema supports a nullable
log_name
, we should be able to create log entries with anull
log name instead of an empty string, so that we may useActivity::whereNull('log_name')
.The text was updated successfully, but these errors were encountered: