CodepadME / laravel-tricks

The source code for the Laravel Tricks website
http://laravel-tricks.com
MIT License
966 stars 298 forks source link

Bug : total tricks count in user public profile view #44

Open yhbyun opened 10 years ago

yhbyun commented 10 years ago

I think that total tricks count shows wrong number in user public profile view. At line 24 in app views/user/public.blade.php file,

<tr>
    <th>Total tricks:</th>
    <td>{{ count($tricks) }}</td>
</tr>

It shows not total tricks number but tricks count in one page. I think it should be changed as follows.

<tr>
    <th>Total tricks:</th>
    <td>{{ $tricks->getTotal() }}</td>
</tr>

The similar bug appears in the next Last trick. It shows last posting date in one page, but I have no good idea to fix this bug.

<tr>
    <th width="140">Last trick:</th>
    <td>{{ $user->lastActivity($tricks) }}</t
</tr>

I hope this will help your coding.