get count laravel
snippet in php

get count laravel

user8829

$count = Model::where('status','=','1')->count();

check count in laravel

user341

$wordlist = Wordlist::where('id', '<=', $correctedComparisons)->get();
$wordCount = $wordlist->count();

laravel find query

user3333

$model = App\Models\Flight::where('legs', '>', 100)
            ->firstOr(['id', 'legs'], function () {
                // ...
            });