Here's my controller public function search(Request $req) { $query = request('q'); ... Try adding dataType: 'json' as a setting in the ajax call.
確定! 回上一頁