title: How can I set a Laravel configuration dynamically based on the currently authenticated user?
body: <p>I am using GrahamCampbell's wrapper of the Gitlab API and it has configuration variables for token, and method. The token being the secret token used to authenticate against the api, and method being the type of authentication used. I am using oauth, so my method is set to 'oauth.'</p>
  <p>However that token is either generated by a request or stored as an encrypted string in my database on the user model in the oauth workflow</p>
  <p>where can I feed that oauth token into the gitlab config in the user login workflow to allow me to make requests to the api on behalf of the currently logged in user?</p>
  <p>Obviously, I can't just set the config item to 'token' =&gt; $user-&gt;gitlab_token, as the config is accessed before most of the laravel classes exist.</p>
  <p>Or am I incorrect in any of my assumptions?</p>