From c34029f0a09208147a77a851c6774b1112fe6fd8 Mon Sep 17 00:00:00 2001 From: Arjay Angeles Date: Thu, 2 Nov 2017 10:09:13 +0800 Subject: [PATCH] Use query() on quick snippet. Update badges. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 382a1239..982fd960 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,10 @@ [![Laravel 4.2|5.x](https://img.shields.io/badge/Laravel-4.2|5.x-orange.svg)](http://laravel.com) [![Latest Stable Version](https://img.shields.io/packagist/v/yajra/laravel-datatables-oracle.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle) +[![Latest Unstable Version](https://poser.pugx.org/yajra/laravel-datatables-oracle/v/unstable.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle) [![Build Status](https://travis-ci.org/yajra/laravel-datatables.svg?branch=master)](https://travis-ci.org/yajra/laravel-datatables) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/yajra/laravel-datatables/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/yajra/laravel-datatables/?branch=master) -[![Total Downloads](https://img.shields.io/packagist/dt/yajra/laravel-datatables-oracle.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle) +[![Total Downloads](https://poser.pugx.org/yajra/laravel-datatables-oracle/downloads.png)](https://packagist.org/packages/yajra/laravel-datatables-oracle) [![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle) This package is created to handle [server-side](https://www.datatables.net/manual/server-side) works of [DataTables](http://datatables.net) jQuery Plugin via [AJAX option](https://datatables.net/reference/option/ajax) by using Eloquent ORM, Fluent Query Builder or Collection. @@ -19,7 +20,7 @@ return datatables()->of(DB::table('users'))->toJson(); return datatables()->of(User::all())->toJson(); return datatables()->eloquent(User::query())->toJson(); -return datatables()->queryBuilder(DB::table('users'))->toJson(); +return datatables()->query(DB::table('users'))->toJson(); return datatables()->collection(User::all())->toJson(); return datatables(User::query())->toJson();