Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-datatables-mongodb maintained by lucasarend

Description
Laravel DataTables plugin to support Mongodb
Author
Lucas Arend
Last update
2022/12/29 15:19 (dev-main)
License
Links
Downloads
3 844

Comments
comments powered by Disqus

Laravel Datatables MongoDB

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.