How to add scopes to LinkedIn provider class in Laravel socialite without touching vendors folder?
<p>I have connected LinkedIn using <a href="https://github.com/laravel/socialite" rel="nofollow">Laravel socialite</a> but I need extra scopes than the default ones shipped with the socialite package like protected <code>'rw_company_admin'</code>.</p>

<p>Laravel ships with <code>protected $scopes = ['r_basicprofile', 'r_emailaddress'];</code> in the <code>LinkedInProvider.php</code> file in <code>/vendor/laravel/socialite/src/Two</code>.</p>

<p>How can I add my additional scopes without touching the vendors folder? </p>