1

I just uploaded my L5 project to host server. And this is the error that I'm getting.

Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' on line 50 this line is in index.php

This is the 50 line

$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

Can I somehow change this line or make my project to php 5.5.32 version ? Because L5 framework using 5.6.25 and that sucks a little bit.

frenchbaguette
  • 1,297
  • 6
  • 22
  • 41

1 Answers1

1
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);//This is line 50

the ::class is only supported since PHP 5.5

Ref:Laravel 4 inside Wamp does not work

Requirement:

http://laravel.com/docs/5.1/releases#laravel-5.1.4

Community
  • 1
  • 1
scott
  • 3,112
  • 19
  • 52
  • 90