Last active
September 26, 2018 14:47
-
-
Save clubeagn/fb7e3faac905392fdf20a2ee9f558baa to your computer and use it in GitHub Desktop.
Typeahead JSON_Result
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function AutocompleteJson(Request $request) { | |
$data = XXXXX::select("xxxx as xxxx") | |
->where("xxx","LIKE","%{$request->input('query')}%") | |
->get(); | |
return response()->json($data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment