title: I keep getting this error about my variable not being defined
body: <p>I am getting this error saying "Undefined variable: stq" and the variable is there. I looked to see if I missed something but I don't see what I'm missing. What is the problem? </p>
  
  <p>Here is my code</p>
  
  <pre><code>$stq=str_replace(", ", " ,", $userinputt);
  
     $pro=User::Where('tags','Like','%'. $str .'%')-&gt;Where(function ($query) use($strrr,$strr,$strrrr) {
      $query-&gt;Where('cityandstate', 'LIKE', '%'. $strr .'%')-&gt;orWhere('cityandstate', 'LIKE', '%'. $strrr .'%')-&gt;orWhere('cityandstate', 'LIKE', '%'. $strrrr .'%')-&gt;orWhere('cityandstate', 'LIKE', '%'. $stq .'%');
  </code></pre>
  
  <p>Thanks in advance </p>