Answer the question
In order to leave comments, you need to log in
Does anyone know how to output php artisan route:list with normal formatting?
Yes, I read that Laravel 9 will finally have a human-readable route:list output - but in fact you have to work with a whole range of versions, including 5.1 :)
The problem is that as soon as the table row becomes wider than the terminal window, all hell breaks loose )) MB on FullHD is not so relevant, but my screen is smaller.
Is this somehow possible to solve? Maybe there are tricks?
Thank you.
Answer the question
In order to leave comments, you need to log in
Rewrite command. You can pull the source from the ninth larka and make your own team out of it.
Create a command Copy the contents
from here https ://github.com/laravel/framework/blob/9.x/src/...
into
php artisan make:command RouteListCommand
the created file github.com/laravel/framework/blob/9.x/src/...
- $rootControllerNamespace = $this->laravel[UrlGenerator::class]->getRootControllerNamespace()
- ?? ($this->laravel->getNamespace().'Http\\Controllers');
+ $rootControllerNamespace = ($this->laravel->getNamespace().'Http\\Controllers');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question