From 2e8f2d67775f78789038befc423e4928888d5db6 Mon Sep 17 00:00:00 2001 From: mahdihty Date: Wed, 3 Mar 2021 18:45:30 +0330 Subject: [PATCH] some minor change in user during test --- app/Http/Controllers/UserController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index ceded14..b8a4135 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -63,6 +63,7 @@ class UserController extends Controller { $user = User::findOrFail($user); $user->deleteAvatar(); + $user->refresh(); return $user; }