I have develop the API application using lumen. And for the access permission control. I want to get the current route in middleware. But, I always get null on:
$route = $request->route();
I already try the way on the Can I get current route information in middleware with Lumen? which using the routeMiddleware and dispatcher. But it's still return null. How could I get the current route on middleware?
Thank a lot..