MegaWm MegaWm - 10 months ago 54
PHP Question

When a syntax error gives the error 500?

The page isn’t working is currently unable to handle this request.
laraver 5.2
ubuntu 14.04
php 5.6


class TestController extends Controller
function index()
echo "index" // I do not have a ;



You should set up apache's DocumentRoot to a public directory which is inside root Laravel project directory. I'm pretty sure you've set up it to a root directory, bot public, that's why you're getting 500 error.