protected function storeActiveTranslationLocale($request)
    {
        $locale = $request->input(DefaultModelController::ACTIVE_TRANSLATION_LOCALE_KEY);

        if ( ! $locale) return;

        /** @var TranslationLocaleHelperInterface $helper */
        $helper = app(TranslationLocaleHelperInterface::class);

        $helper->setActiveLocale($locale);
    }
protected function storeActiveTranslationLocale($request)
    {
        $locale = $request->input(DefaultModelController::ACTIVE_TRANSLATION_LOCALE_KEY);

        if ( ! $locale) return;

        /** @var TranslationLocaleHelperInterface $helper */
        $helper = app(TranslationLocaleHelperInterface::class);

        $helper->setActiveLocale($locale);
    }
protected function storeActiveTranslationLocale ( $ request ) { $ locale = $ request -> input ( DefaultModelController :: ACTIVE_TRANSLATION_LOCALE_KEY ) ; if ( ! $ locale ) return ; /** @var TranslationLocaleHelperInterface $helper */ $ helper = app ( TranslationLocaleHelperInterface :: class ) ; $ helper -> setActiveLocale ( $ locale ) ; }
Stores active translation locale in session.

@param \Illuminate\Http\Request $request
Stores active translation locale in session .