lucasarend/laravel-datatables-mongodb

Laravel DataTables plugin to support Mongodb

v1.0.1 2022-12-29 14:19 UTC

This package is auto-updated.

Last update: 2024-04-29 04:48:00 UTC


README

About Package

Hey, I start the development of this package now, some things may not work very well.

I'm learning English sorry for any mistakes.

Feel free to send suggestions and improvements.

Installation

Package is available via Composer:

"lucasarend/laravel-datatables-mongodb": "^1.0.1"

or run

composer require lucasarend/laravel-datatables-mongodb

Configure

Open the config/datatables.php file and add the engines manually to the config

    //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,
    ],

Documentation

You will use the Datatable in the same way. Documentation for more information.

License

The MIT License (MIT). Please see License File for more information.