src/Http/Controllers/PublicController.php
public function langChooser()
    {
        $homepage = $this->repository->findBy('is_home', 1);
        if (!$homepage) {
            app('log')->error('No homepage found.');
            abort(404);
        }
        $locales = TypiCMS::enabledLocales();

        return view('core::public.lang-chooser')
            ->with(compact('homepage', 'locales'));
    }
public function langChooser()
    {
        $homepage = $this->repository->findBy('is_home', 1);
        if (!$homepage) {
            app('log')->error('No homepage found.');
            abort(404);
        }
        $locales = TypiCMS::enabledLocales();

        return view('core::public.lang-chooser')
            ->with(compact('homepage', 'locales'));
    }
public function langChooser ( ) { $ homepage = $ this -> repository -> findBy ( 'is_home' , 1 ) ; if ( ! $ homepage ) { app ( 'log' ) -> error ( 'No homepage found.' ) ; abort ( 404 ) ; } $ locales = TypiCMS :: enabledLocales ( ) ; return view ( 'core::public.lang-chooser' ) -> with ( compact ( 'homepage' , 'locales' ) ) ; }
Display the lang chooser.

@return null
Display the lang chooser .