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

vignus's avatar

laravel 5.2 Error php artisan route:list

When i'am typing the command php artisan route:list in laravel 5.2 , i'am getting this error message: [Symfony\Component\Debug\Exception\FatalThrowableError] Parse error: syntax error, unexpected ''password'' (T_CONSTANT_ENCAPSED_STRING), expecting ']' but i can't find the file where the error is located.

Please Help !

0 likes
3 replies
richard's avatar
richard
Best Answer
Level 21

You have probably tampered with Auth files like App\Http\Contollers\AuthRegisterController.php where you have not closed the array's bracket

nathanpurcell's avatar

I'd recommend commenting out each route and running the command again to narrow down the area where this could be happening - then you can look through the associated files searching for "password".

vignus's avatar

Thanks to you guys , i found it . the typo was indeed in AuthRegisterController.php file

Please or to participate in this conversation.