src/Http/Controllers/PublicController.php
public function redirectToHomepage()
    {
        $homepage = $this->repository->findBy('is_home', 1);
        $locale = $this->getBrowserLanguageOrDefault();

        return redirect($homepage->uri($locale));
    }
public function redirectToHomepage()
    {
        $homepage = $this->repository->findBy('is_home', 1);
        $locale = $this->getBrowserLanguageOrDefault();

        return redirect($homepage->uri($locale));
    }
public function redirectToHomepage ( ) { $ homepage = $ this -> repository -> findBy ( 'is_home' , 1 ) ; $ locale = $ this -> getBrowserLanguageOrDefault ( ) ; return redirect ( $ homepage -> uri ( $ locale ) ) ; }
Get browser language or default locale and redirect to homepage.

@return \Illuminate\Http\RedirectResponse
Get browser language or default locale and redirect to homepage .