public function filterExcept($patterns = []) { if (empty($patterns)) { return $this; } $toExclude = $this->filterMatch($patterns)->keys()->toArray(); return $this->except($toExclude); }
public function testEmptyExcept() { $count = $this->routes->filterExcept()->count(); $this->assertEquals(6, $count); }