Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to pass write post method in lumen

$app->post('insertGender', function (IlluminateHttpRequest $request) {
        $NAME = $request->input('NAME');
        $result = DB::insert("INSERT INTO HK_GENDER (NAME) VALUES (?)",[$NAME]);
        return ($result)? "wow":"Noo";
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #write #post #method #lumen
ADD COMMENT
Topic
Name
6+2 =