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:
Julian Prieber 2022-04-11 13:06:34 +02:00
parent c0a8c4150b
commit 8fa1aa8e51
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class UserController extends Controller
{ {
$userId = Auth::user()->id; $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); return view('studio/links', $data);
} }