jtrezza jtrezza - 6 months ago 33
Ajax Question

How to debug ajax in laravel 4

I want to know how to debug ajax in Laravel 4, because when error, I only get and error 500.

I'm making ajax request with jQuery.

Answer

Use Laravel Log to debug it in Laravel:

Log::info('Whatever you need to send to your log');

And check your log for your messages and all error messages:

php artisan tail