From b2628e881b4baa334975a1e976f6b95e6340b876 Mon Sep 17 00:00:00 2001 From: Ammar Alakkad Date: Sun, 10 May 2015 12:05:08 +0300 Subject: [PATCH] Add Request::ajax() to requests.md Copy the `Request::ajax()` section as is from 4.2 docs. --- requests.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/requests.md b/requests.md index 20301a67953..4a90e3211b5 100644 --- a/requests.md +++ b/requests.md @@ -224,6 +224,14 @@ The `Request` class provides many methods for examining the HTTP request for you #### Retrieving The Request URI $uri = Request::path(); + +#### Determine If The Request Is Using AJAX + + if (Request::ajax()) + { + // + } + #### Retrieving The Request Method