title: Laravel extending class
body: <p>Are there any other steps required to extend a class in Laravel 3?</p>
  
  <p>I created <code>application/libraries/response.php</code>:</p>
  
  <pre><code>class Response extends Laravel\Response {
  
      public static function json($data, $status = 200, $headers = array(), $json_options = 0)
      {
          $headers['Content-Type'] = 'application/json; charset=utf-8';
  
          if(isset($data['error']))
          {
              $status = 400;
          }
  
          dd($data);
  
          return new static(json_encode($data, $json_options), $status, $headers);
      }
  
      public static function my_test()
      {
          return var_dump('expression');
      }
  
  }
  </code></pre>
  
  <p>But for some reason, neither the <code>my_test()</code> function, or the modified <code>json()</code> function works.</p>
  
  <p>In my controller, I do the following:</p>
  
  <pre><code>Response::my_test();
  // or
  $response['error']['type']    = 'existing_user';
  Response::json($response);
  </code></pre>
  
  <p>And none work, what am I missing?</p>