Caffeinated\Menus\Builder::filter PHP Метод

filter() публичный Метод

Since menu items are stored as a collection, this will simply forward the callback to the Laravel Collection filter() method and return the results.
public filter ( callable $callback ) : Builder
$callback callable
Результат Builder
    public function filter($callback)
    {
        if (is_callable($callback)) {
            $this->items = $this->items->filter($callback);
        }
        return $this;
    }