Skip to content

Commit

Permalink
Merge pull request #14 from finecho/master
Browse files Browse the repository at this point in the history
version-user withTrashed
  • Loading branch information
overtrue committed Dec 7, 2020
2 parents 504e2be + 3cdc015 commit a457c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Version extends Model
*/
public function user()
{
return $this->belongsTo(\config('versionable.user_model'), \config('versionable.user_foreign_key'));
return $this->belongsTo(\config('versionable.user_model'), \config('versionable.user_foreign_key'))->withTrashed();
}

/**
Expand Down

0 comments on commit a457c61

Please sign in to comment.