mirror of
https://github.com/supanadit/short-url.git
synced 2024-11-14 04:22:21 +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;
|
$saveGeneratedURL['path_generated'] = $generatedPath;
|
||||||
$userSession = $request->session()->has('user');
|
$userSession = $request->session()->has('user');
|
||||||
if ($userSession) {
|
if ($userSession) {
|
||||||
$saveGeneratedURL['user_id'] = $userSession;
|
$saveGeneratedURL['user_id'] = $request->session()->get('user');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->input('expired_date') != null && $request->input('expired_date') != "") {
|
if ($request->input('expired_date') != null && $request->input('expired_date') != "") {
|
||||||
|
Loading…
Reference in New Issue
Block a user