where count laravel eloquent code example
Example 1: get count laravel
$count = Model::where('status','=','1')->count();
Example 2: count in laravel'
$count = ModelName::where('id',$id)->count();
$count = Model::where('status','=','1')->count();
$count = ModelName::where('id',$id)->count();