Answers for "how to get count rows by id in laravel"

PHP
3

count number of rows laravel controller

$wordlist = Wordlist::where('id', '<=', $correctedComparisons)->get();
$wordCount = $wordlist->count();
Posted by: Guest on August-26-2021
7

get count laravel

$count = Model::where('status','=','1')->count();
Posted by: Guest on May-12-2020

Code answers related to "how to get count rows by id in laravel"

Browse Popular Code Answers by Language