Answers for "how to convert code mysql to query builder laravel"

PHP
0

Laravel query builder toSql

$query = DB::table('table')->whereIn('some_field', [1,2,30]);

$sql = $query->toSql();

$bindings = $query->getBindings();
Posted by: Guest on May-16-2021

Code answers related to "how to convert code mysql to query builder laravel"

Browse Popular Code Answers by Language