📜  如何在流明中传递 write post 方法 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:01.800000             🧑  作者: Mango

代码示例1
$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";
    });