aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Http/Controllers/UserController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Http/Controllers/UserController.php')
-rw-r--r--app/Http/Controllers/UserController.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php
index d82ee98..2cfbea7 100644
--- a/app/Http/Controllers/UserController.php
+++ b/app/Http/Controllers/UserController.php
@@ -27,7 +27,6 @@ class UserController extends Controller
Storage::put('avatars/' . $avatarName, (string) $fittedAvatar);
$user->avatar = $avatarName;
$user->save();
- return back()
- ->with('success', 'You have successfully uploaded the avatar.');
+ return response()->json(array('success'=>'You have successfully uploaded the avatar.'));
}
}