<commit_before>## Datatables Package for Laravel 4|5

[![Latest Stable Version](https://poser.pugx.org/yajra/laravel-datatables-oracle/v/stable.png)](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)
[![Build Status](https://travis-ci.org/yajra/laravel-datatables-oracle.png?branch=master)](https://travis-ci.org/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)
[![License](https://poser.pugx.org/yajra/laravel-datatables-oracle/license.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle)

**About**

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.

### Feature Overview
- Supports the following data source
    - **Eloquent ORM**
    - **Fluent Query Builder**
    - **Collection**
- Adding or editing content of columns and removing columns
- Templating new or current columns via Blade Template Engine or by using Closure
- Works with **ALL the DATABASE** supported by Laravel
- Works with **Oracle Database** using [Laravel-OCI8](https://github.com/yajra/laravel-oci8) package
- Works with [DataTables](http://datatables.net) v1.10++

**If you are using Datatables v1.9, please use package version [v4.x](https://github.com/yajra/laravel-datatables-oracle/tree/v4.3.2) and [v3.x](https://github.com/yajra/laravel-datatables-oracle/tree/L4) for Laravel 5 and Laravel 4 respectively**

### Install through composer
`composer require yajra/laravel-datatables-oracle:~5.0`

> For Laravel 4 users, checkout [L4](https://github.com/yajra/laravel-datatables-oracle/tree/L4) branch or use `composer require yajra/laravel-datatables-oracle:~3.0`.

### Register provider and alias and publish configuration
Once the package was downloaded, open "config/app.php" and register the `provider` and `alias` of the package:
```php
    'providers' => [
        ...
        'yajra\Datatables\DatatablesServiceProvider',
    ],

    'aliases' => [
        ...
        'Datatables'      => 'yajra\Datatables\Datatables',
    ],
```
Finally you need to publish a configuration file by running the following Artisan command.

```php
$ php artisan vendor:publish --provider="yajra\Datatables\DatatablesServiceProvider" --tag="config"
```

### Demo Application
- Check the [Laravel Datatables Demo App](https://github.com/yajra/laravel-datatables-demo) for a real example/working code.

### Usage

It is very simple to use this package. Just create your own fluent query object or eloquent object without getting results (that means don't use get(), all() or similar methods) and give it to Datatables.
You are free to use all Eloquent ORM and Fluent Query Builder features.

It is better, you know these:
- When you use select method on Eloquent or Fluent Query Builder, you choose columns
- You can easily edit columns by using `editColumn($column, $content)`<commit_msg>demo host note<commit_after>## Datatables Package for Laravel 4|5

[![Latest Stable Version](https://poser.pugx.org/yajra/laravel-datatables-oracle/v/stable.png)](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)
[![Build Status](https://travis-ci.org/yajra/laravel-datatables-oracle.png?branch=master)](https://travis-ci.org/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)
[![License](https://poser.pugx.org/yajra/laravel-datatables-oracle/license.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle)

**About**

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.

### Feature Overview
- Supports the following data source
    - **Eloquent ORM**
    - **Fluent Query Builder**
    - **Collection**
- Adding or editing content of columns and removing columns
- Templating new or current columns via Blade Template Engine or by using Closure
- Works with **ALL the DATABASE** supported by Laravel
- Works with **Oracle Database** using [Laravel-OCI8](https://github.com/yajra/laravel-oci8) package
- Works with [DataTables](http://datatables.net) v1.10++

**If you are using Datatables v1.9, please use package version [v4.x](https://github.com/yajra/laravel-datatables-oracle/tree/v4.3.2) and [v3.x](https://github.com/yajra/laravel-datatables-oracle/tree/L4) for Laravel 5 and Laravel 4 respectively**

### Install through composer
`composer require yajra/laravel-datatables-oracle:~5.0`

> For Laravel 4 users, checkout [L4](https://github.com/yajra/laravel-datatables-oracle/tree/L4) branch or use `composer require yajra/laravel-datatables-oracle:~3.0`.

### Register provider and alias and publish configuration
Once the package was downloaded, open "config/app.php" and register the `provider` and `alias` of the package:
```php
    'providers' => [
        ...
        'yajra\Datatables\DatatablesServiceProvider',
    ],

    'aliases' => [
        ...
        'Datatables'      => 'yajra\Datatables\Datatables',
    ],
```
Finally you need to publish a configuration file by running the following Artisan command.

```php
$ php artisan vendor:publish --provider="yajra\Datatables\DatatablesServiceProvider" --tag="config"
```

### Demo Application
- Check the [Laravel Datatables Demo App](https://github.com/yajra/laravel-datatables-demo) for a real example/working code. **Hosted demo site coming soon.**

### Usage

It is very simple to use this package. Just create your own fluent query object or eloquent object without getting results (that means don't use get(), all() or similar methods) and give it to Datatables.
You are free to use all Eloquent ORM and Fluent Query Builder features.

It is better, you know these:
- When you use select method on Eloquent or Fluent Query Builder, you choose columns
- You can easily edit columns by using `editColumn($column, $content)`
{'fraction_non_alphanumeric': 0.1324036587194482, 'fraction_numerical': 0.007197480881691408, 'mean_word_length': 4.647756138865368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 34, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6284108', 'n_tokens_mistral': 2219, 'n_tokens_neox': 2120, 'n_words': 554}