title: Sending additional parameters to callback uri in socialite package for laravel
body: <p>Im trying to use Socialite package for laravel and I would like to know how to pass additional parameters to callback url. It seems that OAuth allows additional params, but I haven't found any solution for laravel on how to pass them. Currently my methods look like this</p>
  
  <pre><code>    public function login($provider)
      {
          return Socialite::with($provider)-&gt;redirect();
      }
  
  
     public function callback(SocialAccountService $service, $provider)
      {
          $driver   = Socialite::driver($provider);
          $user = $service-&gt;createOrGetUser($driver, $provider);
          $this-&gt;auth()-&gt;login($user, true);
          return redirect()-&gt;intended('/');
  
      }
  </code></pre>
  
  <p>Suppose I want to get <code>$user_role</code> variable in my callback method. How do I pass it there?</p>