Update UserController.php

This commit is contained in:
Julian Prieber 2022-12-05 22:58:06 +01:00
parent ace499c07b
commit 449bff98c0
1 changed files with 5 additions and 2 deletions

View File

@ -689,11 +689,14 @@ class UserController extends Controller
}
function addIcon($icon, $link){
$userId = Auth::user()->id;
$links = new Link;
$links->user_id = Auth::id();
$links->button_id = '94';
$links->link = $link;
$links->user_id = $userId;
$links->title = $icon;
$links->button_id = '94';
$links->save();
$links->order = ($links->id - 1);
$links->save();
}