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') != "") {