Muhammad Kashif
Muhammad Kashif

Reputation: 131

Laravel 5.2 artisan error: Parse error: syntax error, unexpected ':'

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.

Upvotes: 0

Views: 487

Answers (1)

Foued MOUSSI
Foued MOUSSI

Reputation: 4813

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

php artisan route:list

Upvotes: 2

Related Questions