Wednesday, June 19, 2019

laravel - How do I solve this PHP version incompatibility on my host, and how to get that Kernel:class the right way?


Parse error: syntax error, unexpected 'class' (T_CLASS), expecting
identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in
/home/capollos/public_html/canopyinteriors/index.php on line 50






require __DIR__.'/../../../canopy/bootstrap/autoload.php';

$app = require_once __DIR__.'/../../../canopy/bootstrap/app.php';


line 50 .. it has to do with the php version on my host cpanel.




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

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

$response->send();

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

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...