I\'m having a lot of trouble figuring out how to use this collection to count rows.
$wordlist = \\DB::table(\'wordlist\')->where(\'id\', \'<=\', $correcte
also, you can fetch all data and count in the blade file. for example:
your code in the controller
$posts = Post::all(); return view('post', compact('posts'));
your code in the blade file.
{{ $posts->count() }}
finally, you can see the total of your posts.