Illuminate\Database\Query\Builder::cleanBindings PHP Method

cleanBindings() protected method

Remove all of the expressions from a list of bindings.
protected cleanBindings ( array $bindings ) : array
$bindings array
return array
    protected function cleanBindings(array $bindings)
    {
        return array_values(array_filter($bindings, function ($binding) {
            return !$binding instanceof Expression;
        }));
    }