mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-16 12:00:50 +01:00
Update UserController.php
This commit is contained in:
parent
ace499c07b
commit
449bff98c0
@ -689,11 +689,14 @@ class UserController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
function addIcon($icon, $link){
|
function addIcon($icon, $link){
|
||||||
|
$userId = Auth::user()->id;
|
||||||
$links = new Link;
|
$links = new Link;
|
||||||
$links->user_id = Auth::id();
|
|
||||||
$links->button_id = '94';
|
|
||||||
$links->link = $link;
|
$links->link = $link;
|
||||||
|
$links->user_id = $userId;
|
||||||
$links->title = $icon;
|
$links->title = $icon;
|
||||||
|
$links->button_id = '94';
|
||||||
|
$links->save();
|
||||||
|
$links->order = ($links->id - 1);
|
||||||
$links->save();
|
$links->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user