We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ace499c commit 449bff9Copy full SHA for 449bff9
app/Http/Controllers/UserController.php
@@ -689,11 +689,14 @@ function searchIcon($icon)
689
}
690
691
function addIcon($icon, $link){
692
+ $userId = Auth::user()->id;
693
$links = new Link;
- $links->user_id = Auth::id();
694
- $links->button_id = '94';
695
$links->link = $link;
+ $links->user_id = $userId;
696
$links->title = $icon;
697
+ $links->button_id = '94';
698
+ $links->save();
699
+ $links->order = ($links->id - 1);
700
$links->save();
701
702
0 commit comments