title: Laravel - pass parameters through app->bind to model's constructor
body: <p>Well, code describes it all. I've an Entity Service Provider, which pass an instance of Playlist Model, which supposed to get an array as it's first constructor parameter. How to pass that parameter through app->bind? Knowing that EntityServiceProvider is automagically injected when referenced in the controller.</p>
  
  <pre><code>        // Current Code
          /**
           * Playlist Entity
           *
           * @return Playlist\PlaylistEntity
           */
          $this-&gt;app-&gt;bind('Playlist\PlaylistEntity', function($app)
          {
              return new PlaylistEntity($app-&gt;make('Playlist\PlaylistRepositoryInterface'));
          });
  
  
  
          // Should be something like this:
          /**
           * Playlist Entity
           *
           * @return Playlist\PlaylistEntity
           */
          $this-&gt;app-&gt;bind('Playlist\PlaylistEntity', function($app)
          {
              return new PlaylistEntity($app-&gt;make('Playlist\PlaylistRepositoryInterface', $parameters));
          });
  </code></pre>
  
  <p>Similar case: <a href="https://stackoverflow.com/questions/15595760/laravel-4-passing-data-from-make-to-the-service-provider">Laravel 4: Passing data from make to the service provider</a></p>