Search code examples
phpsymfonylaravellaravel-routinglaravel-artisan

HTTPException in Laravel artisan route list


I am having a problem that running php artisan route:list is throwing a Symfony\Component\HttpKernel\Exception\HttpException but it is not giving me any other output or logging it anywhere I can see.

I have tried composer update and dump-autoload as well as refreshing the route cache, debug is also set to true. How can I get more information about the HttpException that is being thrown?


Solution

  • I found that you can run the route:list command with the -verbose flag which outputs the full error stack.

    php artisan -v route:list
    

    From this I then found my errors, good luck!