From 4324c9a154918abcf14d148ac06648d6a1889d3e Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 18 May 2015 20:39:36 +0200 Subject: Exception handlers compatibility without dingo facade; fixed namespaces --- src/controllers/UserController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/controllers/UserController.php') 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'); -- cgit v1.2.3