src/Stevemo/Cpanel/CpanelServiceProvider.php
public function registerGroup()
    {
        $app = $this->app;

        $app->bind('Stevemo\Cpanel\Group\Repo\CpanelGroupInterface', function($app)
        {
            return new GroupRepository($app['sentry'], $app['events']);
        });

        $app->bind('Stevemo\Cpanel\Group\Form\GroupFormInterface', function($app)
        {
            return new GroupForm(
                new GroupValidator($app['validator'], new MessageBag),
                $app->make('Stevemo\Cpanel\Group\Repo\CpanelGroupInterface')
            );
        });
    }
public function registerGroup()
    {
        $app = $this->app;

        $app->bind('Stevemo\Cpanel\Group\Repo\CpanelGroupInterface', function($app)
        {
            return new GroupRepository($app['sentry'], $app['events']);
        });

        $app->bind('Stevemo\Cpanel\Group\Form\GroupFormInterface', function($app)
        {
            return new GroupForm(
                new GroupValidator($app['validator'], new MessageBag),
                $app->make('Stevemo\Cpanel\Group\Repo\CpanelGroupInterface')
            );
        });
    }
public function registerGroup ( ) { $ app = $ this -> app ; $ app -> bind ( 'Stevemo\Cpanel\Group\Repo\CpanelGroupInterface' , function ( $ app ) { return new GroupRepository ( $ app [ 'sentry' ] , $ app [ 'events' ] ) ; } ) ; $ app -> bind ( 'Stevemo\Cpanel\Group\Form\GroupFormInterface' , function ( $ app ) { return new GroupForm ( new GroupValidator ( $ app [ 'validator' ] , new MessageBag ) , $ app -> make ( 'Stevemo\Cpanel\Group\Repo\CpanelGroupInterface' ) ) ; } ) ; }
Register Group binding

@author Steve Montambeault
@link   http://stevemo.ca
Register Group binding