count model in laravel code example Example: count in laravel' $count = ModelName::where('id',$id)->count();