public function getProvider($name, $request)
    {
        $class = isset($this->providers[$name]) ? $this->providers[$name] : null;

        if (!$class) {
            return null;
        }

        return new $class($request, $request->input('client_id'), $request->input('client_secret'), $request->input('redirect_url'));
    }
public function getProvider($name, $request)
    {
        $class = isset($this->providers[$name]) ? $this->providers[$name] : null;

        if (!$class) {
            return null;
        }

        return new $class($request, $request->input('client_id'), $request->input('client_secret'), $request->input('redirect_url'));
    }
public function getProvider ( $ name , $ request ) { $ class = isset ( $ this -> providers [ $ name ] ) ? $ this -> providers [ $ name ] : null ; if ( ! $ class ) { return null ; } return new $ class ( $ request , $ request -> input ( 'client_id' ) , $ request -> input ( 'client_secret' ) , $ request -> input ( 'redirect_url' ) ) ; }
Get provider.

@param string  $name
@param Request $request

@return \Laravel\Socialite\Two\AbstractProvider|null
Get provider .