Should the array be sql safe in insert operation like that:
DB::table('table')->insert($data);
Should the $data array be sql safe?
Should the array be sql safe in insert operation like that:
DB::table('table')->insert($data);
Should the $data array be sql safe?
From the Query Builder docs:
The Laravel query builder uses PDO parameter binding to protect your application against SQL injection attacks. There is no need to clean strings being passed as bindings.
So, if you don't use raw queries, you don't need to worry about data safety.