kirschbaum-development / eloquent-power-joins

The Laravel magic you know, now applied to joins.
MIT License
1.41k stars 87 forks source link

Call to undefined method Illuminate\Database\Eloquent\Builder::getSelect() #46

Closed bianchi closed 3 years ago

bianchi commented 3 years ago

I'm getting this error:

Call to undefined method Illuminate\Database\Eloquent\Builder::getSelect()

My code call: EmpresaGrupo::joinRelationship('pessoa');

I believe is the same as #43

I'm using Lumen 8

luisdalmolin commented 3 years ago

@bianchi Sorry the delay on getting back to you. Is your model using the PowerJoins trait? To be honest I didn't test this package with Lumen, but it should (in theory) work in the same way.

bianchi commented 3 years ago

@luisdalmolin thanks for answer. Yes, I'm using the trait

bianchi commented 3 years ago

Solved registering service provider. In my app.php:

$app->register(Kirschbaum\PowerJoins\PowerJoinsServiceProvider::class);