src/User/UserServiceProvider.php
protected function registerUserField()
    {
        $this->app->bind('themosis.user.field', function ($app) {
            $viewFactory = $app['view'];
            $viewFactory->addLocation(__DIR__.'/views');

            return new UserField(
                new FieldsRepository(),
                $app['action'],
                $viewFactory,
                $app['validator']
            );
        });
    }
protected function registerUserField()
    {
        $this->app->bind('themosis.user.field', function ($app) {
            $viewFactory = $app['view'];
            $viewFactory->addLocation(__DIR__.'/views');

            return new UserField(
                new FieldsRepository(),
                $app['action'],
                $viewFactory,
                $app['validator']
            );
        });
    }
protected function registerUserField ( ) { $ this -> app -> bind ( 'themosis.user.field' , function ( $ app ) { $ viewFactory = $ app [ 'view' ] ; $ viewFactory -> addLocation ( __DIR__ . '/views' ) ; return new UserField ( new FieldsRepository ( ) , $ app [ 'action' ] , $ viewFactory , $ app [ 'validator' ] ) ; } ) ; }
Register the user field.
Register the user field .