I have a simple decent query in my laravel application which is nothing but a left join
$spDetails = ServiceProvider::from(‘ipay_app.service_providers as sp’)
->leftJoin(‘ipay_app_bbps.biller_category as billerCategory’, ‘billerCategory.api_id’, ‘=’, ‘sp.api_id’)->get();
dd($spDetails);
but this query returns me an error which states this
Symfony\Component\ErrorHandler\Error\FatalError:
Access level to Illuminate\Database\Query\JoinClause::forSubQuery() must be public
(as in class Illuminate\Database\Query\Builder)
in file /var/www/api-test3.instantpay.in/vendor/laravel/framework/src/Illuminate/Database/Query/JoinClause.php on line 130
same query when i am running on my local setup it gives me no error but this is in my testing server and i am having no idea why this error occured
any hints or any suggestion please ?