Socieboy\Forum\Providers\ForumServiceProvider::shareGlobalVariables PHP Method

shareGlobalVariables() protected method

Share variables across the views.
protected shareGlobalVariables ( )
    protected function shareGlobalVariables()
    {
        view()->share('template', config('forum.template'));
        view()->share('content', config('forum.content'));
        view()->composer('Forum::Topics.index', function ($view) {
            $view->with('all', config('forum.icons.all'));
        });
        view()->composer(['Forum::Conversations.show', 'Forum::Replies.show'], function ($view) {
            $view->with('commonMark', new CommonMarkConverter());
        });
    }