laravel bindings query
snippet in php

laravel bindings query

user6449

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

$sql = $query->toSql();

$bindings = $query->getBindings();