Laravel 5 installation error – Parse error: syntax error, unexpected ‘class’ (T_CLASS)

If you get

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in I:\PP\public\index.php on line 50

error while installing Laravel 5, you are probably running on old PHP version – make sure to upgrade to 5.6.* and higher.

Crafting application...

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T
_STRING) or variable (T_VARIABLE) or '{' or '$' in I:\PP\artisan on line 31
Script php artisan clear-compiled handling the post-install-cmd event returned w
ith an error

[RuntimeException]
Error Output:

run-script [--dev] [--no-dev] [-l|--list] [script] [args1] ... [argsN]

Application ready! Build something amazing.

Solution
Update to newer version of PHP.

Write a Comment

Comment

Webmentions

  • comprar kamagra online

    kamagra žádný předchozí skript

    kamagra bez lékařského předpisu přes noc

  • how to order xifaxan australia discount

    buy cheap xifaxan usa sales

    discount xifaxan generic from india

  • buy avodart uk suppliers

    buy avodart generic order

    avodart with saturday delivery

  • BUY staxyn COD

    staxyn compare price

    Canada staxyn no perscription

  • discount itraconazole generic extended release

    buy cheap itraconazole buy safely online

    canadian cheap itraconazole with free pills

  • purchase gabapentin buy germany

    rx pharmacy online gabapentin

    get gabapentin uk over the counter

  • online order fildena purchase online uk

    online order fildena canada medicine

    cheapest buy fildena uk online pharmacy

  • cheapest buy flexeril cyclobenzaprine canada price

    Buy flexeril cyclobenzaprine without a perscription or membership

    discount flexeril cyclobenzaprine cheap canada

  • achat kamagra generique

    kamagra à prix réduit

    kamagra low cost au canada

  • buying enclomiphene canada purchase

    how to buy enclomiphene american pharmacy

    online order enclomiphene australia price

  • how to buy rifaximin lowest cost pharmacy

    cheap rifaximin generic available

    order rifaximin generic canada

  • androxal no script required express delivery

    online order androxal cost without insurance

    buy androxal buy in australia