Skip to content

Instantly share code, notes, and snippets.

@dkesberg
Created December 5, 2013 11:15
Show Gist options
  • Save dkesberg/7803703 to your computer and use it in GitHub Desktop.
Save dkesberg/7803703 to your computer and use it in GitHub Desktop.
Quick & dirty: Display registered routes in laravel
Route::any("/showroutes", [
"as" => "routes",
function() {
$routes = Route::getRoutes();
echo '<pre>';
print_r(array_keys($routes->all()));
echo '</pre>';
exit;
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment