PHP code example of lucasarend / laravel-datatables-mongodb

1. Go to this page and download the library: Download lucasarend/laravel-datatables-mongodb library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lucasarend / laravel-datatables-mongodb example snippets


    //Replace query by LucasArend\DataTablesMongoDB\QueryDataTable::class,
    //Original Config
    'engines'        => [
        'eloquent'   => Yajra\DataTables\EloquentDataTable::class,
        'query'      => Yajra\DataTables\QueryDataTable::class,
        'collection' => Yajra\DataTables\CollectionDataTable::class,
    ],
    //Afeter Replace Config
    'engines'        => [
        'eloquent'   => Yajra\DataTables\EloquentDataTable::class,
        'query'      => LucasArend\DataTablesMongoDB\QueryDataTable::class,
        'collection' => Yajra\DataTables\CollectionDataTable::class,
    ],