dingo/api — pull request #199 by ipalaus (2014-09-23 23:26:10+00:00)
Title: Add a ResponseFactory::created() method to respond with a 201 Created

With this commit we can respond with a `$this->created()` or a `$this->created("/users/{$id}")` within our controllers.

Returning this method will respond with a `201 Created` header. If the first parameter is provided, a location header will be added as `Location: /users/1`.