PHP-002 / Intermediate
User input in Eloquent whereRaw or DB::raw
Why is this a problem?
Raw methods bypass binding, so concatenated strings become SQL directly.
How to fix it
php
User::where('name', 'LIKE', '%'.addcslashes($request->q, '%_\\').'%')->get();