laravel获取所有的路由列表
laravel 查看路由列表代码:
1、
app()->getRoutes();
2
$routes = Route::getRoutes() foreach($routes as $route) { echo $route->getPath(); }
laravel 查看路由列表代码:
1、
app()->getRoutes();
2
$routes = Route::getRoutes() foreach($routes as $route) { echo $route->getPath(); }