how to get a count of all elements of an array from model with id in laravel controller code example
Example: get count laravel
$count = Model::where('status','=','1')->count();
$count = Model::where('status','=','1')->count();