Skip to content

Commit ad74669

Browse files
authored
Merge pull request #26 from openclassify/spektra2147-fix-count-1
fixed count query
2 parents 2a39566 + a7680b6 commit ad74669

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Http/Controller/MyProfileController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(
4242
public function home(ProfileFormBuilder $form)
4343
{
4444
$advs_count = new AdvModel();
45-
$advs_count = count($advs_count->myAdvsByUser()->get());
45+
$advs_count = $advs_count->myAdvsByUser()->count();
4646

4747
$user = $this->userRepository->find(Auth::id());
4848

0 commit comments

Comments
 (0)