public function redirect($to, $full = false)
    {
        $to = trim($to, '/');
        if (!$full && !Str::startsWith(App::$Alias->baseUrl, $to)) {
            $to = App::$Alias->baseUrl . '/' . $to;
        }
        $redirect = new FoundationRedirect($to);
        $redirect->send();
        exit('Redirecting to ' . $to . ' ...');
    }
public function redirect($to, $full = false)
    {
        $to = trim($to, '/');
        if (!$full && !Str::startsWith(App::$Alias->baseUrl, $to)) {
            $to = App::$Alias->baseUrl . '/' . $to;
        }
        $redirect = new FoundationRedirect($to);
        $redirect->send();
        exit('Redirecting to ' . $to . ' ...');
    }
public function redirect ( $ to , $ full = false ) { $ to = trim ( $ to , '/' ) ; if ( ! $ full && ! Str :: startsWith ( App :: $ Alias -> baseUrl , $ to ) ) { $ to = App :: $ Alias -> baseUrl . '/' . $ to ; } $ redirect = new FoundationRedirect ( $ to ) ; $ redirect -> send ( ) ; exit ( 'Redirecting to ' . $ to . ' ...' ) ; }
Fast redirect in web environment
@param string $to
@param bool $full
Fast redirect in web environment