SyntaxFix
Write A Post
Hire A Developer
Questions
Its better to access the count with the laravels count method
$count = Model::where('status','=','1')->count();
or
$count = Model::count();