【发布时间】:2017-03-07 12:57:02
【问题描述】:
如何用图片替换自定义 laravel 分页? 我还想在不重新加载页面的情况下获取下一组数据。 我的控制器看起来像这样。
class HomeController extends Controller
{
public function index()
{
$featured_products = DB::table('products')
->where('feature_type','=',3)
->orderBy('created_at','DESC')
->simplePaginate(4);
$latest_products = DB::table('products')
->orderBy('created_at','DESC')
->simplePaginate(4);
return View::make('pages.home')
->with(['featured_products'=>$featured_products,'latest_products'=>$latest_products]);
}
}
【问题讨论】:
标签: php ajax laravel laravel-5 pagination