public function modify($name, Closure $callback)
    {
        $menu = collect($this->menus)->filter(function ($menu) use ($name) {
            return $menu->getName() == $name;
        })->first();

        $callback($menu);
    }
public function modify($name, Closure $callback)
    {
        $menu = collect($this->menus)->filter(function ($menu) use ($name) {
            return $menu->getName() == $name;
        })->first();

        $callback($menu);
    }
public function modify ( $ name , Closure $ callback ) { $ menu = collect ( $ this -> menus ) -> filter ( function ( $ menu ) use ( $ name ) { return $ menu -> getName ( ) == $ name ; } ) -> first ( ) ; $ callback ( $ menu ) ; }
Modify a specific menu.

@param  string   $name
@param  Closure  $callback
@return void
Modify a specific menu .