Get the raw array of bindings.
public getRawBindings ( ) : array | ||
return | array |
/** * Remove scope constraint from the query. * * @param \Illuminate\Database\Query\Builder $builder * @param int $key * @return void */ protected function removeBinding(BaseBuilder $query, $key) { $bindings = $query->getRawBindings()['where']; unset($bindings[$key]); $query->setBindings($bindings); }
/** * Get the raw array of bindings. * * @return array * @static */ public static function getRawBindings() { return \Illuminate\Database\Query\Builder::getRawBindings(); }
/** * Remove bindings from the query builder. * * @param \Illuminate\Database\Query\Builder $query * @param integer $key * @param integer $count * @return void */ protected function removeBindings(Query $query, $key, $count) { $bindings = $query->getRawBindings()['where']; array_splice($bindings, $key, $count); $query->setBindings($bindings, 'where'); }