0

I migrated my project (built in Laravel 5) to web server and when I tried to run artisan command I get this error:

[Symfony\Component\Debug\Expetion\FatalErrorExeption] syntax error, unexpected '\' (T_NS_SEPARATOR) 

Does someone knows where is the problem?

6
  • what artisan command did you run? Commented Jul 20, 2015 at 10:01
  • @kdlcruz I tried php artisan list and my custom commands and none of them worked Commented Jul 20, 2015 at 10:07
  • try to do 'composer install' or 'composer update' Commented Jul 20, 2015 at 10:13
  • @kdlcruz I tried but same error pop ups when composer calls php artisan clear-complied Commented Jul 20, 2015 at 10:22
  • hmm, sorry I don't know anymore. Maybe try 'composer dump-autoload'. Commented Jul 20, 2015 at 10:27

1 Answer 1

1

Namespace not supported probably you are in older version of php. Check if your php version meets minimum system requirements

Should be 5.4+

Sign up to request clarification or add additional context in comments.

5 Comments

My php version is 5.5.15
@jureispro but your php-cli version is not . check which php version is set for using via cli
How do you check php-cli version? I typed php-v in cmd and it says that: PHP 5.5.15 (cli) .......
I am using Windows Server :/

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.