jtrezza jtrezza - 1 year ago 177
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 Source

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download