title: How does Laravel know Request::wantsJson is a request for JSON?
body: <p>I noticed that Laravel has a neat method <a href="http://laravel.com/docs/4.2/requests"><code>Request::wantsJson</code></a> - I assume when I make the request I can pass information to request a JSON response, but how do I do this, and what criteria does Laravel use to detect whether a request asks for JSON ?</p>