src/SocialiteManager.php
protected function formatRedirectUrl(array $config)
    {
        $redirect = value($config['redirect']);

        return Str::startsWith($redirect, '/')
                    ? $this->app['url']->to($redirect)
                    : $redirect;
    }
protected function formatRedirectUrl(array $config)
    {
        $redirect = value($config['redirect']);

        return Str::startsWith($redirect, '/')
                    ? $this->app['url']->to($redirect)
                    : $redirect;
    }
protected function formatRedirectUrl ( array $ config ) { $ redirect = value ( $ config [ 'redirect' ] ) ; return Str :: startsWith ( $ redirect , '/' ) ? $ this -> app [ 'url' ] -> to ( $ redirect ) : $ redirect ; }
Format the callback URL, resolving a relative URI if needed.

@param  array  $config
@return string
Format the callback URL resolving a relative URI if needed .