Skip to content
Advertisement

Tag: console.log

net::ERR_INSUFFICIENT_RESOURCES error on ajax clock

I have an ajax php clock set up and for some reason it’s giving me thousands of net::ERR_INSUFFICIENT_RESOURCES errors in my console. What’s the reason behind this? Code that calls out the clock function Melbourne.php Answer You misplaced the setInterval delay. You provided it to the $(document).ready()… Which is probably discarding it. So the interval having no delay, it is

How to print out value on controller Laravel?

I’m beginner on Laravel… How to debug some value on controller in Laravel, result can show to console like syntax console.log() on javascript? example controller function : Answer In Laravel use dd($id) or if you don’t want to halt the execution, you can use dump($var). You can still always use PHP’s native functions like var_dump, die and print_r.

Advertisement