mirror of
https://github.com/supanadit/short-url.git
synced 2024-11-10 01:52:20 +00:00
Fix cannot generate url by specific user
This commit is contained in:
parent
dc7acbbe2d
commit
ca99dcfcb3
@ -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') != "") {
|
||||
|
Loading…
Reference in New Issue
Block a user