Laravel 如何将数据发送到流明路由

Laravel 如何将数据发送到流明路由,laravel,oauth-2.0,lumen,laravel-passport,Laravel,Oauth 2.0,Lumen,Laravel Passport,我正在尝试将客户端的密码和id发送到oauth/token中, 这是我的路线 $router->post('api/v1/oauth/token'[ 'grant_type' => 'password', 'client_id' => '2', 'client_secret' => 'token', 'username' => $request->username, 'password'=> $

我正在尝试将客户端的密码和id发送到oauth/token中, 这是我的路线

$router->post('api/v1/oauth/token'[
      'grant_type' => 'password',
      'client_id' => '2',
      'client_secret' => 'token',
      'username' => $request->username,
      'password'=> $request->password,
    ],function(){
  return app('auth')->user();
});
这是我的邮递员
请帮帮我

请告诉我您是如何发送的。像这样?
'api/v1/oauth/token'
后缺少逗号。