Download the PHP package pimlie/laravel-datatables-mongodb without Composer
On this page you can find all versions of the php package pimlie/laravel-datatables-mongodb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pimlie/laravel-datatables-mongodb
More information about pimlie/laravel-datatables-mongodb
Files in pimlie/laravel-datatables-mongodb
Package laravel-datatables-mongodb
Short Description Laravel DataTables plugin to support Mongodb
License MIT
Informations about the package laravel-datatables-mongodb
Laravel DataTables Mongodb Plugin
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 pimlie/laravel-datatables-mongodb:^1.1
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
> Although this package has a dependency on laravel-datatables, you need to explictly require the package as auto-discovery works based on the packages listed in the dependencies section of your composer.json.
so you either you have to add the service provide:
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)