Laravel uses prepared statements behind the scenes, so using any of the Eloquent or Query Builder methods is using PDO prepared statements.
Just keep in mind that DB::raw()
does not automatically sanitize any input.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community