original_string: protected function ajaxResponse($message)
      {
          $request = Request::capture();
  
          // ajax but not pjax
          if ($request->ajax() && !$request->pjax()) {
              return response()->json([
                  'status'  => true,
                  'message' => $message,
              ]);
          }
  
          return false;
      }
code: protected function ajaxResponse($message)
      {
          $request = Request::capture();
  
          // ajax but not pjax
          if ($request->ajax() && !$request->pjax()) {
              return response()->json([
                  'status'  => true,
                  'message' => $message,
              ]);
          }
  
          return false;
      }
code_tokens: protected function ajaxResponse ( $ message ) { $ request = Request :: capture ( ) ; // ajax but not pjax if ( $ request -> ajax ( ) && ! $ request -> pjax ( ) ) { return response ( ) -> json ( [ 'status' => true , 'message' => $ message , ] ) ; } return false ; }
docstring: Get ajax response.
  
  @param string $message
  
  @return bool|\Illuminate\Http\JsonResponse
docstring_tokens: Get ajax response .