title: How to register a dependency when creating laravel package
body: <p>I would like to know how to register a dependency when creating laravel package.</p>
  
  <p>In my package <code>composer.json</code> I have :</p>
  
  <pre><code>{
      "name": "facilinfo/gallery",
      "description": "Photo galleries management package for laravel",
      "type": "library",
      "license": "MIT",
      "keywords": ["laravel"],
      "authors": [
          {
              "name": "facilinfo",
              "email": "contact@facil-info.net"
          }
      ],
      "minimum-stability": "stable",
      "require": {
          "laravelcollective/html": "5.2.*",
          "intervention/image": "dev-master"
      },
      "autoload": {
          "psr-4": {
              "Facilinfo\\Gallery\\": "src/"
          }
      }
  }
  </code></pre>
  
  <p>And when I do </p>
  
  <pre><code>$form = new Form();
  </code></pre>
  
  <p>I have a <code>Class not found</code> error.</p>
  
  <p>How can I solve it?</p>