@@ 44-48 (lines=5) @@ | ||
41 | ||
42 | $this->authDriver = $config['activitylog']['default_auth_driver'] ?? $auth->getDefaultDriver(); |
|
43 | ||
44 | if (starts_with(app()->version(), '5.1')) { |
|
45 | $this->causedBy = $auth->driver($this->authDriver)->user(); |
|
46 | } else { |
|
47 | $this->causedBy = $auth->guard($this->authDriver)->user(); |
|
48 | } |
|
49 | ||
50 | $this->logName = $config['activitylog']['default_log_name']; |
|
51 | ||
@@ 191-195 (lines=5) @@ | ||
188 | return $modelOrId; |
|
189 | } |
|
190 | ||
191 | if (starts_with(app()->version(), '5.1')) { |
|
192 | $model = $this->auth->driver($this->authDriver)->getProvider()->retrieveById($modelOrId); |
|
193 | } else { |
|
194 | $model = $this->auth->guard($this->authDriver)->getProvider()->retrieveById($modelOrId); |
|
195 | } |
|
196 | ||
197 | if ($model) { |
|
198 | return $model; |