Optimise queries for rendering the users dashboard page
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 32s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m37s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
2024-04-14 00:47:08 +10:00
parent d6e23b9a90
commit bac41969a5
5 changed files with 68 additions and 57 deletions

View File

@@ -102,7 +102,6 @@ class User extends Authenticatable implements MustVerifyEmail
*/
public function isZC(): bool
{
$this->load(['systems.addresses']);
return $this->zc()->count() > 0;
}