Laravel custom package loading issue
<p>I have a small problem. I'm trying to make a Laravel package , but it won't load. Whenever I try adding it's provider in the config/app.php, I get:</p>

<pre><code>Error class 'Something\HttpRequest\HttpRequestServiceProvider' not found
</code></pre>

<p>At the moment it has just the one file, situated in "vendor/something/http-request/src/HttpRequestServiceProvider". I'm suspecting something to do with the path, but I'm unsure.</p>

<p>I've tried </p>

<pre><code>composer dump-autoload
</code></pre>

<p>but it doesn't get mapped.</p>

<p>Edit:</p>

<p>I've also published it to packagist and installing it via composer, in order to check that it works (well, it doesn't :D). </p>

<p>The service provider stub looks like this:</p>

<pre><code>&lt;?php

namespace Something\HttpRequest;

use Illuminate\Support\ServiceProvider;

class HttpRequestServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {

    }
}
</code></pre>

<p>So basically it's just the Laravel generated one. I doubt this is the source of the issue, but who knows. </p>

<p>Any ideas?</p>