Laravel – withCount() is not working acccording to filters applied in when()
problem with this is withCount() not changing after when() is applied for example without when() transaction_count is 5000 and after when is applied it still remains 5000 ? it should change according to filter apply in when() public function allUsers(Request…