how to select with count only laravel code example
Example 1: get count laravel
$count = Model::where('status','=','1')->count();
Example 2: count with condition laravel
$user = User::where('user_id' , 10);
$user->count();
$count = Model::where('status','=','1')->count();
$user = User::where('user_id' , 10);
$user->count();