Laravel list routes in view code example
Example 1: laravel route list
php artisan route:list
Example 2: laravel routes return view in web.php
Route::get("/page", function(){
return View::make("dir.page");
});
php artisan route:list
Route::get("/page", function(){
return View::make("dir.page");
});