我使用流明開發了API應用程序。併爲訪問權限控制。我想在中間件中獲得當前的路線。但是,我總是得到空的: $route = $request->route();
我已經嘗試它使用routeMiddleware和調度員的Can I get current route information in middleware with Lumen?的方式。但它仍然返回null。我怎樣才能獲得中間件上的當前
我有三個表。 表1:posts //存儲用戶的Twitter的職位 表2:tags //存儲在Twitter的職位使用 表3中的標籤:post_tag //樞軸表 現在,我想要輸入一個tag,例如'yolo'並獲取所有包含此標籤的帖子。這是相當容易的,我已經做了這樣的 類崗位: /**
* Get the tags associated with the post
*
* @return \