mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 20:20:41 -05:00
Eager Load User Relationships in Scout Model Method
This commit is contained in:
parent
293e52726b
commit
1521e50dcb
@ -137,6 +137,8 @@ class User extends Authenticatable implements MustVerifyEmail
|
|||||||
*/
|
*/
|
||||||
public function shouldBeSearchable(): bool
|
public function shouldBeSearchable(): bool
|
||||||
{
|
{
|
||||||
|
$this->load(['bans']);
|
||||||
|
|
||||||
return $this->isNotBanned();
|
return $this->isNotBanned();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user