public function getIndex()
    {
        $front_page = config('mustard.front_page', '/buy');

        if (view()->exists(config('mustard.front_page'))) {
            return view(config('mustard.front_page'));
        }

        session()->reflash();

        return mustard_redirect(config('mustard.front_page'));
    }
public function getIndex()
    {
        $front_page = config('mustard.front_page', '/buy');

        if (view()->exists(config('mustard.front_page'))) {
            return view(config('mustard.front_page'));
        }

        session()->reflash();

        return mustard_redirect(config('mustard.front_page'));
    }
public function getIndex ( ) { $ front_page = config ( 'mustard.front_page' , '/buy' ) ; if ( view ( ) -> exists ( config ( 'mustard.front_page' ) ) ) { return view ( config ( 'mustard.front_page' ) ) ; } session ( ) -> reflash ( ) ; return mustard_redirect ( config ( 'mustard.front_page' ) ) ; }
Redirect index requests or return view.

@return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
Redirect index requests or return view .