When I try to deploy my Laravel project to the server it doesn't work anymore (on localhost everything works) and the only error message is:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
And I found out (through commenting out code and trial and error) that the error is probably somewhere in the index.php around these lines:
$kernel = $app->make('Illuminate\Contracts\Http\Kernel');
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
What could the problem be? And how do I fix it?