We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 140251a commit 7874c4cCopy full SHA for 7874c4c
src/Versionable.php
@@ -221,7 +221,7 @@ public function getVersionModel(): string
221
222
public function getVersionUserId()
223
{
224
- return $this->getAttribute(\config('versionable.user_foreign_key')) ?? auth()->id();
+ return auth()->id() ?? $this->getAttribute(\config('versionable.user_foreign_key'));
225
}
226
227
public function getKeepVersionsCount(): string
0 commit comments