rosscooper
rosscooper

Reputation: 2045

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?

Upvotes: 6

Views: 2881

Answers (2)

Zeeshan Mehdi
Zeeshan Mehdi

Reputation: 1439

In my case this worked you can run this command composer dumpautoload and after that try php artisan route:list it will definitely work .

Upvotes: 2

rosscooper
rosscooper

Reputation: 2045

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!

Upvotes: 8

Related Questions