I've tried these
request::is_ajax()
Request::instance()->is_ajax
To no avail. I've noticed in the request
class there is a public property $is_ajax
but I can't seem to be able to access the property.
What am I doing wrong?
UPDATE
I ended up getting it to work with Request::$is_ajax