skip to Main Content

Handle Laravel 404 or 500 error in jQuery AJAX

I'm currently stuck on an issue where I'm unable to handle 404 or 500 error with jQuery AJAX. I'm fetching some data from controller, and I'm returning json() with relevant status code: public function getFilteredProducts(Request $request){ $products = Product::where('product_category_id', $request->category_id)->get();…

VIEW QUESTION
Back To Top
Search