I am executing two query builder ->get(); and trying to merge() but get the error:
$output = $query->orderBy('user_email', 'ASC')->get();
$billing = DB::table('users_billing') ->where( 'billing_company' , 'LIKE', '%'.$data.'%') ->get();
$merge = $output->merge($billing);
Any ideas whats happening?
I just updated to 4.1.* as well
{"error":{"type":"Symfony\Component\Debug\Exception\FatalErrorException","message":"Call to a member function merge() on a non-object","file":"/home/pixauk/public_html/subdomain_admin/laravel/app/models/AccountsModel.php","line":39}}
Sorry forgot to mention $output does have a table->where as well etc
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community