M
M
MakPET2016-03-13 17:08:36
Laravel
MakPET, 2016-03-13 17:08:36

Does a syntax error give a 500 error?

The lav52.dev page isn't working
lav52.dev is currently unable to handle this request.
500
laraver 5.2
ubuntu 14.04
php 5.6
lamp-server

Route::get('/','[email protected]');

class TestController extends Controller
{
 function index()
    {
        echo "index" // здес не написал ;

    }
}

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Arthur, 2016-03-13
@astralo

For starters, you should look at the server logs. usually located in /var/log
further, in laravel it is worth enabling the debug=true option in the config/app.php file;
if the error is not displayed, then add lines like error_reporting(E_ALL);

S
Sergey, 2016-03-13
@cd2005

stackoverflow.com/questions/11749043/php-not-displ...

S
Silm, 2016-03-13
@Silm

On the virgin there will be a FatalErrorException, a trace, that's all.
The prod will just have a 500 response code.
And that's right.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question