Reputation: 305
I want to use Laravel in my projects, but I faced a problem. Namely, I'm already using WAMP server as local server... I followed the instructions for installing Laravel inside WAMP... so I enabled openSSL first, then downloaded Composer, then tried composer command in the CMD, everything was fine so far... then created project... Composer has downloaded the dependencies... and everything looked perfect, but when I try localserver/myProject/public I get
Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in C:\wamp\www\myProject\public\index.php on line 50
It is strange to have any errors, since I didn't even touch the files inside the package... To mention, I am using WAMP 2.2 (PHP 5.3.1) on Windows XP, and installed Laravel 4.
Any ideas how to solve this issue?
Here is the index.php in the public folder:
require __DIR__.'/../bootstrap/autoload.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);//This is line 50
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Upvotes: 1
Views: 1171