diff options
author | Camil Staps | 2015-06-28 00:16:54 +0200 |
---|---|---|
committer | Camil Staps | 2015-06-28 00:16:54 +0200 |
commit | 1a3c6167f6a68964a0bd94c064a88794c952efb6 (patch) | |
tree | 984508e789b96e2f8906c00a9def229435b45403 /src/controllers/UserController.php | |
parent | Expose Location header; redirect after storing User (diff) |
Lumen
Diffstat (limited to 'src/controllers/UserController.php')
-rw-r--r-- | src/controllers/UserController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controllers/UserController.php b/src/controllers/UserController.php index 8c91f53..2daadb8 100644 --- a/src/controllers/UserController.php +++ b/src/controllers/UserController.php @@ -23,6 +23,7 @@ use CamilStaps\BotleaguesApi\Database\User; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Input; +use Illuminate\Support\Facades\URL; use Illuminate\Support\Facades\Validator; class UserController extends BaseController { @@ -61,7 +62,7 @@ class UserController extends BaseController { $this->user->password = Input::get('password'); if ($this->user->save()) { - return $this->response->created(route('user.show', $this->user->email)); + return $this->response->created(route('user/show', $this->user->email)); } else { throw new \Dingo\Api\Exception\StoreResourceFailedException; } |