How do I replace the custom laravel pagination with images? I would also like to get the next set of data without reloading the page. My controller looks like this.
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]);
}
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire