How does one go about escaping parameters passed to a raw query in Laravel 4? I expected something like DB::escape() (which rings a bell from Laravel 3) and als
DB::escape()
Here's a fuller example, showing how to escape both values and columns and extend Laravel's querybuilder:
getGrammar(); return $this->whereRaw('FIND_IN_SET(?,' . $grammar->wrap($columnName) . ')', [$value]); }); } }