laravel count rows code example
Example 1: get count laravel
$count = Model::where('status','=','1')->count();
Example 2: DB::table('users')->get(); id 1
$users = DB::table('users')where('id','=', $userid)->get();
Example 3: check count in laravel
$wordlist = Wordlist::where('id', '<=', $correctedComparisons)->get();
$wordCount = $wordlist->count();