$app->post('insertGender', function (IlluminateHttpRequest $request) { $NAME = $request->input('NAME'); $result = DB::insert("INSERT INTO HK_GENDER (NAME) VALUES (?)",[$NAME]); return ($result)? "wow":"Noo"; });