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

        $app->bind('Stevemo\Cpanel\Permission\Repo\PermissionInterface', function($app)
        {
            return new PermissionRepository(new Permission, $app['events'], $app['config']);
        });

        $app->bind('Stevemo\Cpanel\Permission\Form\PermissionFormInterface', function($app)
        {
            return new PermissionForm(
                new PermissionValidator($app['validator'], new MessageBag),
                $app->make('Stevemo\Cpanel\Permission\Repo\PermissionInterface')
            );
        });
    }
public function registerPermission()
    {
        $app = $this->app;

        $app->bind('Stevemo\Cpanel\Permission\Repo\PermissionInterface', function($app)
        {
            return new PermissionRepository(new Permission, $app['events'], $app['config']);
        });

        $app->bind('Stevemo\Cpanel\Permission\Form\PermissionFormInterface', function($app)
        {
            return new PermissionForm(
                new PermissionValidator($app['validator'], new MessageBag),
                $app->make('Stevemo\Cpanel\Permission\Repo\PermissionInterface')
            );
        });
    }
public function registerPermission ( ) { $ app = $ this -> app ; $ app -> bind ( 'Stevemo\Cpanel\Permission\Repo\PermissionInterface' , function ( $ app ) { return new PermissionRepository ( new Permission , $ app [ 'events' ] , $ app [ 'config' ] ) ; } ) ; $ app -> bind ( 'Stevemo\Cpanel\Permission\Form\PermissionFormInterface' , function ( $ app ) { return new PermissionForm ( new PermissionValidator ( $ app [ 'validator' ] , new MessageBag ) , $ app -> make ( 'Stevemo\Cpanel\Permission\Repo\PermissionInterface' ) ) ; } ) ; }
Register Permission module component

@author Steve Montambeault
@link   http://stevemo.ca
Register Permission module component