Skip to content

Commit

Permalink
chore: update to match PSR12
Browse files Browse the repository at this point in the history
  • Loading branch information
mwargan committed Apr 3, 2024
1 parent cbd602f commit b68e6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function toArray($request)
'updated_at' => $this->when($userBelongsToAuthenticatedUser, $this->updated_at),
'email_verified_at' => $this->email_verified_at,
// Sometimes we also load the pivot MapUser. If thats the case, we need to also show the can_create_markers
'can_create_markers' => $this->whenPivotLoaded(new MapUser, fn () => $this->pivot->can_create_markers),
'can_create_markers' => $this->whenPivotLoaded(new MapUser(), fn () => $this->pivot->can_create_markers),
];
}
}

0 comments on commit b68e6dd

Please sign in to comment.