Question : count with condition laravel
Answered by : charming-capuchin-wi1ykynitimq
$user = User::where('user_id' , 10);
$user->count();
Source : | Last Update : Sun, 14 Jun 20
Question : laravel count
Answered by : open-oystercatcher-u8ykphs8oraf
use Illuminate\Support\Facades\DB;
$users = DB::table('users')->count();
Source : https://laravel.com/docs/9.x/queries#introduction | Last Update : Wed, 02 Mar 22
Question : check count in laravel
Answered by : grumpy-grasshopper-u6pbwb47zawm
$wordlist = Wordlist::where('id', '<=', $correctedComparisons)->get();
$wordCount = $wordlist->count();
Source : | Last Update : Wed, 10 Jun 20