jeudi 1 octobre 2015

Laravel 5.1 : syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' [duplicate]

I just uploaded my laravel to server as soon as i enter into the site i am getting pasrse error like syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'
My code is as follows:

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

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request, $response);

can any one tell me why it is throwing error?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire