From f3a84954ab224bc23656768190120c8aceac4063 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 4 Jul 2018 16:52:41 +0200 Subject: Added default avatar --- app/Http/Controllers/UserController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Http') diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 2cfbea7..8d98a9a 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -3,9 +3,9 @@ namespace App\Http\Controllers; use Auth; +use Illuminate\Foundation\Auth\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; -use Illuminate\Foundation\Auth\User; use Intervention\Image\ImageManagerStatic as Image; class UserController extends Controller @@ -27,6 +27,6 @@ class UserController extends Controller Storage::put('avatars/' . $avatarName, (string) $fittedAvatar); $user->avatar = $avatarName; $user->save(); - return response()->json(array('success'=>'You have successfully uploaded the avatar.')); + return response()->json(array('success' => 'You have successfully uploaded the avatar.')); } } -- cgit v1.2.3