Answers for "how to get query binding in laravel"

PHP
1

laravel bindings query

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

$sql = $query->toSql();

$bindings = $query->getBindings();
Posted by: Guest on September-15-2020

Code answers related to "how to get query binding in laravel"

Browse Popular Code Answers by Language