<commit_before># Laravel Dynatable for Laravel 5
A library for sending connecting to the [dynatables.js](http://www.dynatable.com/) front end.  

Credits to [ifnot](https://github.com/Ifnot/Dynatable) for making the original version of dynatables for laravel. 

## Installation
    composer require twomein/laravel-dynatables

## Usage

```php

    //Get an Eloquent collection
    $cars = Car::all();
    
    //Define the columns you want to send
    $columns = ['id', 'name', 'price', 'stock'];<commit_msg>Added information about the serviceProvider<commit_after># Laravel Dynatable for Laravel 5
A library for sending connecting to the [dynatables.js](http://www.dynatable.com/) front end.  

Credits to [ifnot](https://github.com/Ifnot/Dynatable) for making the original version of dynatables for laravel. 

## Installation
    composer require twomein/laravel-dynatables

## Usage

Register the service provider

    'Twomein\LaravelDynatable\LaravelDynatableServiceProvider',


```php

    //Get an Eloquent collection
    $cars = Car::all();
    
    //Define the columns you want to send
    $columns = ['id', 'name', 'price', 'stock'];
{'fraction_non_alphanumeric': 0.11441048034934498, 'fraction_numerical': 0.0017467248908296944, 'mean_word_length': 3.9184549356223175, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2416305', 'n_tokens_mistral': 365, 'n_tokens_neox': 342, 'n_words': 112}