Added constraint support for Eloquent has #1166