Answers for "how to display the amount of table records in laravel "count""

PHP
7

count in laravel'

$count = ModelName::where('id',$id)->count();
Posted by: Guest on March-18-2021
-1

check count in laravel

$wordlist = Wordlist::where('id', '<=', $correctedComparisons)->get();
$wordCount = $wordlist->count();
Posted by: Guest on June-03-2020

Code answers related to "how to display the amount of table records in laravel "count""

Browse Popular Code Answers by Language