Manage multiple GitHub connections
13.1You can use the connection method to call specific connections defined in your configuration. If you use the default connection, you can omit the connection() call or use connection() with no arguments.
use GrahamCampbell\GitHub\Facades\GitHub;
// Using a specific connection named 'alternative'
GitHub::connection('alternative')->me()->emails()->add('foo@bar.com');
// The following are all equivalent if 'main' is the default connection:
GitHub::connection('main')->issues()->show('GrahamCampbell', 'Laravel-GitHub', 2);
GitHub::issues()->show('GrahamCampbell', 'Laravel-GitHub', 2);
GitHub::connection()->issues()->show('GrahamCampbell', 'Laravel-GitHub', 2);
// You can also change the default connection at runtime
GitHub::setDefaultConnection('alternative');