Laravel 8 Sanctum : How to set the expiration for a token in the route's middleware?

前端 未结 0 930
小蘑菇
小蘑菇 2020-12-22 20:39

In web.php, I have set this route:

Route::middleware(\'auth:sanctum,expiration:1\')->get(\'/test\', [TestConnections::class, \'test\']);.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题