To begin with, you either set a column to null via migration or not, depending on the case, using ->where('column', $value); is all you need to do. For cases where you needed to exclusively check if a column is null then ->whereNull('column'); is your go-to. The framework is good enough to understand this. So, you just need to follow the right practices.