@@ -55,11 +55,11 @@ public function littlelink(request $request)
5555 if (empty ($ id )) {
5656 return abort (404 );
5757 }
58-
58+
5959 $ userinfo = User::select ('name ' , 'littlelink_name ' , 'littlelink_description ' )->where ('id ' , $ id )->first ();
6060 $ information = User::select ('name ' , 'littlelink_name ' , 'littlelink_description ' )->where ('id ' , $ id )->get ();
6161
62- $ links = DB ::table ('links ' )->join ('buttons ' , 'buttons.id ' , '= ' , 'links.button_id ' )->select ('links.link ' , 'links.id ' , 'links.button_id ' , 'links.title ' , 'buttons.name ' )->where ('user_id ' , $ id )->orderBy ('up_link ' , 'asc ' )->orderBy ('order ' , 'asc ' )->get ();
62+ $ 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 ();
6363
6464 return view ('littlelink ' , ['userinfo ' => $ userinfo , 'information ' => $ information , 'links ' => $ links , 'littlelink_name ' => $ littlelink_name ]);
6565 }
@@ -77,7 +77,7 @@ public function littlelinkhome(request $request)
7777 $ userinfo = User::select ('name ' , 'littlelink_name ' , 'littlelink_description ' )->where ('id ' , $ id )->first ();
7878 $ information = User::select ('name ' , 'littlelink_name ' , 'littlelink_description ' )->where ('id ' , $ id )->get ();
7979
80- $ links = DB ::table ('links ' )->join ('buttons ' , 'buttons.id ' , '= ' , 'links.button_id ' )->select ('links.link ' , 'links.id ' , 'links.button_id ' , 'links.title ' , 'buttons.name ' )->where ('user_id ' , $ id )->orderBy ('up_link ' , 'asc ' )->orderBy ('order ' , 'asc ' )->get ();
80+ $ links = DB ::table ('links ' )->join ('buttons ' , 'buttons.id ' , '= ' , 'links.button_id ' , ' links.custom_css ' )->select ('links.link ' , 'links.id ' , 'links.button_id ' , 'links.title ' , 'buttons.name ' )->where ('user_id ' , $ id )->orderBy ('up_link ' , 'asc ' )->orderBy ('order ' , 'asc ' )->get ();
8181
8282 return view ('littlelink ' , ['userinfo ' => $ userinfo , 'information ' => $ information , 'links ' => $ links , 'littlelink_name ' => $ littlelink_name ]);
8383 }
0 commit comments