Laravel 5 AJAX Pagination using JQuery Example

Submitted by dave - 6 months ago

Laravel 5 AJAX Pagination using JQuery Example

public function setproductList(Request $request){
    $set_products = Product::paginate(6);
    // request for ajax
    if ($request->ajax()) {
        // return for ajax
        return view('presult', compact('products'));
    }
    // return for ajax
    return view('setproductList',compact('products'));
}


// see more at :: http://www.onlinecode.org/laravel-5-ajax-pagination-using-jquery-example/

Ads cover the costs of maintaining Laravel-tricks

comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks