Download the PHP package diego-drese/laravel-datatables-mongodb without Composer
On this page you can find all versions of the php package diego-drese/laravel-datatables-mongodb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download diego-drese/laravel-datatables-mongodb
More information about diego-drese/laravel-datatables-mongodb
Files in diego-drese/laravel-datatables-mongodb
Package laravel-datatables-mongodb
Short Description Laravel 11 DataTables plugin to support Mongodb
License MIT
Informations about the package laravel-datatables-mongodb
Laravel DataTables Mongodb Plugin FORK from https://github.com/pimlie/laravel-datatables-mongodb
This package is a plugin for Laravel DataTables to support Mongodb using Laravel Mongodb
Requirements
Documentation
This plugin provides most functionalities described in the Laravel Datatables documentation. See Known issues
below
Installation
composer require diego-drese/laravel-datatables-mongodb:^1.0
Configure
Check the Laravel DataTables configuration for how to configure and use it.
If you want the datables()
and/or of
methods to automatically use the correct datatables engine,
Unfortunately we cant use auto-discovery yet, this package will be discoverd before laravel-datatables is and that will overwrite the engines config at the moment
or open the config/datatables.php
file and add the engines manually to the config:
Usage
Use the datatables()
method
For this to work you need to have the class definitions added to the engines
and builders
datatables configuration, see above.
Use the dataTable class directly.
Use via trait.
-
Add the
MongodbDataTableTrait
trait to your model. - Call dataTable() directly on your model.
Known issues
- the
orderColumn
andorderColumns
methods are empty placeholders and do nothing - there is currently no support for viewing/searching/ordering on (non-embedded) relationships between Models (eg through a
user.posts
column key)