how to handle the requst in lmen code example
Example: how to pass write post method in lumen
$app->post('insertGender', function (Illuminate\Http\Request $request) {
$NAME = $request->input('NAME');
$result = DB::insert("INSERT INTO HK_GENDER (NAME) VALUES (?)",[$NAME]);
return ($result)? "wow":"Noo";
});