diff options
author | Camil Staps | 2015-05-18 20:39:36 +0200 |
---|---|---|
committer | Camil Staps | 2015-05-18 20:39:36 +0200 |
commit | 4324c9a154918abcf14d148ac06648d6a1889d3e (patch) | |
tree | 4c877ac52131619d5edd2ce525d92270617e46f0 /src/controllers/UserController.php | |
parent | Seems to work (diff) |
Exception handlers compatibility without dingo facade; fixed namespaces
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 a64ed71..6af3fe8 100644 --- a/src/controllers/UserController.php +++ b/src/controllers/UserController.php @@ -2,6 +2,7 @@ namespace CamilStaps\BotleaguesApi\Controllers; use CamilStaps\BotleaguesApi\Database\User; +use CamilStaps\BotleaguesApi\Exception\ValidationException; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Input; @@ -46,7 +47,7 @@ class UserController extends BaseController { $payload = Input::only('email', 'password'); $validator = Validator::make($payload, $rules); if ($validator->fails()) { - throw new Exception\ValidationException('Could not create new user.', $validator->errors()); + throw new ValidationException('Could not create new user.', $validator->errors()); } $this->user->email = Input::get('email'); |