Expanded controller for button ID
Expanded user controller to get the button ID of individual buttons as a variable on the 'Links' page. This will be used to decide if the customize button prompt will be shown for the upcoming button editor. See: https://blog.littlelink-custom.com/upcoming-features/
This commit is contained in:
parent
c0a8c4150b
commit
8fa1aa8e51
|
@ -153,7 +153,7 @@ class UserController extends Controller
|
|||
{
|
||||
$userId = Auth::user()->id;
|
||||
|
||||
$data['links'] = Link::select('id', 'link', 'title', 'order', 'click_number', 'up_link')->where('user_id', $userId)->orderBy('up_link', 'asc')->orderBy('order', 'asc')->paginate(10);
|
||||
$data['links'] = Link::select('id', 'link', 'title', 'order', 'click_number', 'up_link', 'links.button_id')->where('user_id', $userId)->orderBy('up_link', 'asc')->orderBy('order', 'asc')->paginate(10);
|
||||
return view('studio/links', $data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue