0
votes

Error

i am using Laravel 5.2 and PHP 7.3.12. and everything was working fine but today whenever i write any artisan command in laravel it gives this error:

[Symfony\Component\Debug\Exception\FatalThrowableError] Parse error: syntax error, unexpected ':'

i don't understand why its giving this error because last night it was working fine.

1
Did you upgrade anything recently? PHP version? Laravel version? I feel like there's incompatible code in Laravel 5.2; i.e. stuff that doesn't work with PHP 7.3Tim Lewis

1 Answers

2
votes

There must be No extra space " " between : and list

php artisan route:list