Skip to content

Instantly share code, notes, and snippets.

@assertchris
Created June 7, 2013 08:09
Show Gist options
  • Select an option

  • Save assertchris/5727743 to your computer and use it in GitHub Desktop.

Select an option

Save assertchris/5727743 to your computer and use it in GitHub Desktop.
<?php
# ...
$filters = [];
foreach (Input::all() as $key => $value)
{
if ($key->startsWith("filter:") or $key->startsWith("where:"))
{
$filters[$key->replace("~(filter|where):~", "")] = $value->split(",");
}
}
$this->filters = $this->filters->merge($filters);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment