You've already forked lubo_comment_query
							
							简易输入提示
This commit is contained in:
		| @@ -59,4 +59,12 @@ class ProgramAppendConstructController extends BaseController | ||||
|         ])); | ||||
|     } | ||||
| 
 | ||||
|     public function from_list(Request $request) { | ||||
|         $query = ProgramAppends::query()->groupBy("from")->select("from")->selectRaw("count(1) as total_count")->orderByDesc("total_count"); | ||||
|         if ($request->has("value")) { | ||||
|             $keyword = $request->get("value"); | ||||
|             $query->where("from", "like", "%{$keyword}%"); | ||||
|         } | ||||
|         return $query->get()->toArray(); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user