File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ protected static function bootLogsActivity(): void
3535 // Hook into eloquent events that only specified in $eventToBeRecorded array,
3636 // checking for "updated" event hook explicitly to temporary hold original
3737 // attributes on the model as we'll need them later to compare against.
38-
38+
3939 static ::eventsToBeRecorded ()->each (function ($ eventName ) {
4040 if ($ eventName === 'updated ' ) {
4141 static ::updating (function (Model $ model ) {
@@ -49,6 +49,7 @@ protected static function bootLogsActivity(): void
4949
5050 if (! $ model ->shouldLogEvent ($ eventName )) {
5151 $ model ->activitylogOptions = null ;
52+
5253 return ;
5354 }
5455
@@ -61,11 +62,13 @@ protected static function bootLogsActivity(): void
6162 // Submitting empty description will cause place holder replacer to fail.
6263 if ($ description == '' ) {
6364 $ model ->activitylogOptions = null ;
65+
6466 return ;
6567 }
6668
6769 if ($ model ->isLogEmpty ($ changes ) && ! $ model ->activitylogOptions ->submitEmptyLogs ) {
6870 $ model ->activitylogOptions = null ;
71+
6972 return ;
7073 }
7174
You can’t perform that action at this time.
0 commit comments