frenchbaguette
frenchbaguette

Reputation: 1339

Laravel 5 error.

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.

Upvotes: 1

Views: 3019

Answers (1)

scott
scott

Reputation: 3202

$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

Upvotes: 1

Related Questions