What is raw query in laravel?

What is raw query in laravel?
Answer
DB::raw() is
used to make arbitrary SQL commands which aren’t parsed any further by the query builder. They therefore can create a vector for attack via SQL injection. Since the query builder is using PDO in the background, we know there is a way to bind parameters to our query so it will sanitize the bound variables.
 

Tìm kiếm

Back
Top