From ca99dcfcb3b0aee033658eede7459fc926939641 Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Tue, 13 Oct 2020 19:57:37 +0700 Subject: [PATCH] Fix cannot generate url by specific user --- app/Http/Controllers/UrlShortenerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/UrlShortenerController.php b/app/Http/Controllers/UrlShortenerController.php index 181d114..e11b169 100755 --- a/app/Http/Controllers/UrlShortenerController.php +++ b/app/Http/Controllers/UrlShortenerController.php @@ -58,7 +58,7 @@ class UrlShortenerController extends Controller $saveGeneratedURL['path_generated'] = $generatedPath; $userSession = $request->session()->has('user'); if ($userSession) { - $saveGeneratedURL['user_id'] = $userSession; + $saveGeneratedURL['user_id'] = $request->session()->get('user'); } if ($request->input('expired_date') != null && $request->input('expired_date') != "") {