-
Beta Was this translation helpful? Give feedback.
Answered by
crynobone
Apr 26, 2022
Replies: 1 comment 2 replies
-
Detail query is executed without global scope in order for Nova to still access soft deleted Now, it seem that the relationship should have been User has one of many Access, where you can define it via: // Models/User.php
public function profile()
{
return $this->hasOne(Access::class)->ofMany()->latest()->withoutTrashed();
}// Nova/User.php
public function fields(NovaRequest $request)
{
return [
HasOne::ofMany('Profile'),
];
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Hannoma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Detail query is executed without global scope in order for Nova to still access soft deleted
Accessmodel.Now, it seem that the relationship should have been User has one of many Access, where you can define it via: