public function register() { // Bind to the key 'MenuBuilder' to a closure instantiating to the MenuBuilderManager. $this->app->bind('MenuBuilder', function ($app) { return new MenuBuilderManager($app); }); }