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

salione's avatar

php artisan serve parse error

hi im begining laravel when run php artisan serve in windows terminal in my laravel project recive below error: note: myphp version: 5.6.12

error: Parse error: parse error: syntax error, unexpected 'class' (t_class), expe t_string) or variable (t_variable) or '{' or '$' in d:\project....

0 likes
2 replies
ohffs's avatar
ohffs
Best Answer
Level 50

That very likely means you have a typo in the file it is mentioning.

salione's avatar

I did'nt understand.what you mean? I recive this error when use "php artisan serve" in my project folder on wndows 8 terminal.

Please or to participate in this conversation.