src/commentsServiceProvider.php
protected function registerComment()
    {
        $this->app->singleton('jlourenco.comments.comment', function ($app) {
            $baseConfig = $app['config']->get('jlourenco.base');
            $config = $app['config']->get('jlourenco.comments');

            $model = array_get($config, 'models.comment');
            $users = array_get($baseConfig, 'models.User');

            if (class_exists($model) && method_exists($model, 'setUsersModel'))
                forward_static_call_array([$model, 'setUsersModel'], [$users]);

            return new CommentRepository($model);
        });
    }
protected function registerComment()
    {
        $this->app->singleton('jlourenco.comments.comment', function ($app) {
            $baseConfig = $app['config']->get('jlourenco.base');
            $config = $app['config']->get('jlourenco.comments');

            $model = array_get($config, 'models.comment');
            $users = array_get($baseConfig, 'models.User');

            if (class_exists($model) && method_exists($model, 'setUsersModel'))
                forward_static_call_array([$model, 'setUsersModel'], [$users]);

            return new CommentRepository($model);
        });
    }
protected function registerComment ( ) { $ this -> app -> singleton ( 'jlourenco.comments.comment' , function ( $ app ) { $ baseConfig = $ app [ 'config' ] -> get ( 'jlourenco.base' ) ; $ config = $ app [ 'config' ] -> get ( 'jlourenco.comments' ) ; $ model = array_get ( $ config , 'models.comment' ) ; $ users = array_get ( $ baseConfig , 'models.User' ) ; if ( class_exists ( $ model ) && method_exists ( $ model , 'setUsersModel' ) ) forward_static_call_array ( [ $ model , 'setUsersModel' ] , [ $ users ] ) ; return new CommentRepository ( $ model ) ; } ) ; }
Registers the blog posts.

@return void
Registers the blog posts .