laravel How to print route lists in Blade

The solution for “laravel How to print route lists in Blade” can be found here. The following code will assist you in solving the problem.

//in your controller you can get the list of routes using Artisan facade.

public function showRoutes($request) {
$routes = Artisan::call(‘route:list’);
return view(‘your_view’, compact(‘routes’));

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

inline scripts encapsulated in