Via Command Line
To do that you can run the route list command in your terminal.
php artisan route:list
Via Route Facade
The other method is to use the "getRoutes()" method of the "Route" facade.
Route::get('/get-all-routes', function () { return \Route::getRoutes(); });
Leave a reply