App\Http\Controllers\User\Settings\GroupController::index PHP Method

index() public method

show group list
public index ( ) : Xpressengine\Presenter\RendererInterface
return Xpressengine\Presenter\RendererInterface
    public function index()
    {
        $groups = $this->groups->with('userCountRelation')->orderBy('createdAt')->get();
        $config = app('xe.config')->get('user.join');
        $joinGroup = $config->get('joinGroup');
        return XePresenter::make('user.settings.group.index', compact('groups', 'joinGroup'));
    }