Fix cannot generate url by specific user

This commit is contained in:
Supan Adit Pratama 2020-10-13 19:57:37 +07:00
parent dc7acbbe2d
commit ca99dcfcb3

View File

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