Package development: how to include provider and aliases (Socialite)
<p>I'm developing my first Larvel-based package. I want to include the Socialite package, so I put it like this in my <code>composer.json</code> file</p>

<pre><code>"require": {
    "laravel/socialite": "^2.0"
},
</code></pre>

<p>Now, how do I include the provider and the alias as  you'd normally do in <code>/config/app.php</code> ?</p>

<p>I think by now I've read every stackoverflow there is about this matter, but nothing seems to work.</p>

<p>This is my package's serviceprovider:</p>

<pre><code>public function boot()
    {
        include __DIR__.'/routes.php';

        $this-&gt;app-&gt;register('Laravel\Socialite\SocialiteServiceProvider');
        $this-&gt;app-&gt;alias('Laravel\Socialite\Facades\Socialite', 'Socialite');

        $this-&gt;loadViewsFrom(__DIR__.'/../views', 'package-name');
        $this-&gt;loadTranslationsFrom(__DIR__.'/../lang', 'package-name');
        $this-&gt;publishes([
            __DIR__.'/../views' =&gt; resource_path('views/vendor/package-name'),
        ]);

        $this-&gt;publishes([
            __DIR__.'/../database/migrations/' =&gt; database_path('migrations')
        ], 'migrations');
    }
</code></pre>

<p>Result: </p>

<blockquote>
  <p>Class 'Laravel\Socialite\SocialiteServiceProvider' not found</p>
</blockquote>

<p><strong>UPDATE</strong></p>

<pre><code>"psr-4": {
            "App\\": "app/",
            "Rubenwouters\\CrmLauncher\\": "packages/rubenwouters/crm-launcher/src/"
        }
</code></pre>