Mendeteksi Ajax Request

if (Request::ajax())
{
    // your beautiful code here...
}