mpyw/eloquent-has-by-join (packagist): Convert has() and whereHas() constraints to join() ones for single-result relations.
Keywords: database|query|builder|laravel|join|illuminate|eloquent|macro|whereHas|has|performance|relationships