I'm trying to use 'LIKE' in Laravel. But in the output whole data is displayed. Is my method correct? If not then correct me.
        $this->uses('Data');
        $a ='nan';
        $options = ['sort' => ['city' => 1]];
        $results = $this->Part->find([],['city','LIKE',"%$a%"],$options);
        return view('testEnv')->with('results',$results);
    }
 
     
     
    