lundi 20 janvier 2020

Object of class Illuminate\Database\Query\Builder could not be converted to string in laravel framework

I am using the below query in controller

if($type=='XY')
        {

            $getData = DB::table('xyz')->where([
                ['xyzcode', '!=','']
                ]);
                if($radial!="")
                {
                 $getData->where('ST_

Distancesphere(geom,ST_SetSRID(ST_MakePoint($longt,$latt),4326))','<', $radial)->toSQL();

            } Its give me an error Object of class Illuminate\Database\Query\Builder could not be converted to string


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2tpL4nO
via IFTTT

Aucun commentaire:

Enregistrer un commentaire