Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ning_ros's avatar

Sytax error after php artisan route:list

I getting error in command php artisan route:list to show routes rule admin..

[Symfony\Component\Debug\Exception\FatalThrowableError] Parse error: syntax error, unexpected '}', expecting ',' or ')'

I have spent like 1/2 hour checking the code again and again.. but there is no error

0 likes
3 replies
bobbybouwmann's avatar

You have a mistake in one of your files. If you use PHPStorm it will show you which file has a file syntax error ;)

1 like
Snapey's avatar

check php version

You could also mention what module/line is the error report for

Please or to participate in this conversation.