Search code examples
laravellaravel-5laravel-artisan

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.


Solution

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

    php artisan route:list