Illuminate\Database\Query\Builder, instance of Illuminate\Database\Eloquent\Builder given code example
Example: Argument 1 passed to Illuminate\\Database\\Eloquent\\Builder::__construct() must be an instance of Illuminate\\Database\\Query\\Builder, instance of Illuminate\\Database\\Eloquent\\Builder given
$model->relation()->getQuery()