laravel count without pagination 1

laravel count without pagination

{{ $users->total() }}

Here is what the above code is Doing:
1. We’re using the paginate method on the $users variable to paginate the results.
2. We’re passing the number of results we want to show per page to the paginate method.
3. We’re using the links method to generate the links to the other pages.
4. We’re using the total method to get the total number of users.

Similar Posts