0
How do I get this function to take the values of the url passed by method get
public function searchBy($nome, $situacao){
$params['nome'] = array('value'=>'%' . $nome . '%', 'operador'=>'like');
$params['situacao'] = array('value'=>$situacao, 'operador'=>'=');
return $this->search($this->cliente, $params);
}
It seems to me that this
$this->search
is very conducive to SQL injection. Why not use Eloquent?– CypherPotato
it seems that this
$this->search
is a method that passes only the model and the arguments from within thewhere()
of eloquent– Erlon Charles