From ba6ffe1808bce5ed1b52e88da9ad9eb944273349 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Mon, 11 Apr 2022 13:31:11 +0200 Subject: [PATCH] Expanded controller for custom icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Expanded user controller to get the custom icon of individual buttons as a variable on the LittleLink page. This will be used to display a custom icon via Font Awesome. See: https://blog.littlelink-custom.com/upcoming-features/ And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/ --- app/Http/Controllers/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index deeeeda..ce9f480 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -59,7 +59,7 @@ class UserController extends Controller $userinfo = User::select('name', 'littlelink_name', 'littlelink_description')->where('id', $id)->first(); $information = User::select('name', 'littlelink_name', 'littlelink_description')->where('id', $id)->get(); - $links = DB::table('links')->join('buttons', 'buttons.id', '=', 'links.button_id')->select('links.link', 'links.id', 'links.button_id', 'links.title', 'links.custom_css', 'buttons.name')->where('user_id', $id)->orderBy('up_link', 'asc')->orderBy('order', 'asc')->get(); + $links = DB::table('links')->join('buttons', 'buttons.id', '=', 'links.button_id')->select('links.link', 'links.id', 'links.button_id', 'links.title', 'links.custom_css', 'links.custom_icon', 'buttons.name')->where('user_id', $id)->orderBy('up_link', 'asc')->orderBy('order', 'asc')->get(); return view('littlelink', ['userinfo' => $userinfo, 'information' => $information, 'links' => $links, 'littlelink_name' => $littlelink_name]); }