title: Laravel 4: Confused about how to use App::make()
body: <p>I am trying to follow the repository pattern outlined in this article <a href="http://code.tutsplus.com/tutorials/the-repository-design-pattern--net-35804#highlighter_174798">http://code.tutsplus.com/tutorials/the-repository-design-pattern--net-35804#highlighter_174798</a> And I am trying to instantiate a class in Laravel using App::make() (Which I am guessing is Laravel's factory pattern?) and I am trying to parse arguments to my class but I can't work out how to do it.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>namespace My;
  
  class NewClass {
      function __construct($id, $title) 
      {
          $this-&gt;id = $id;
          $this-&gt;title = $title;
      }
  }
  
  $classArgs = [
      'id'    =&gt; 1,
      'title' =&gt; 'test',
  ]
  
  $newClass = App::make('My\NewClass', $classArgs);
  </code></pre>
  
  <p>Can anyone point to an example of how to use App::make() or have I gone in the completely wrong direction and shouldn't be using App::make()?</p>