Answers for "how to pass write post method in lumen"

PHP
0

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";
    });
Posted by: Guest on January-27-2021

Code answers related to "how to pass write post method in lumen"

Browse Popular Code Answers by Language