I have in routes.php the following method:
$app->post('insertGender', function ($NAME) {
$result = DB::insert("INSERT INTO HK_GENDER (NAME) VALUES (?)",[$NAME]);
return ($result)? "wow":"Noo";
});
I try to pass the parameter via form using Postman and I get an error
Missing argument 1 for Closure::{closure}()
in routes.php line 93
at Application->Laravel\Lumen\Concerns\{closure}('2', 'Missing argument 1 for Closure::{closure}()', '93', array()) in routes.php
at Closure->{closure}()
Why is the parameter provided not used?