singlequote/laravel-datatables

This repo contains a Datatable that can render a filterable and sortable table. It aims to be very lightweight and easy to use. It has support for retrieving data asynchronously, pagination and recursive searching in relations


README

Latest Version on Packagist Total Downloads

This repo contains a Serverside Datatable that can render a filterable and sortable table. It aims to be very lightweight and easy to use. It has support for retrieving data asynchronously, pagination, permission check, role check, laravel policies and recursive searching in relations.

Installation

The package is tested on laravel 5,6,7,8 and 9

You can install the package via composer:

composer require singlequote/laravel-datatables

Let's start

We wanted our code as clean as possible and use the same code more than once.

Tutorial

See the Quick start docs here

Whats new

  • Added table triggers (events). Check it here
  • Added a new field class called Link. It generates an html a tag Check it here
  • We upgraded the label method on the Button and Link class. You can use data columns now for showing server side data. Check it here
  • Writing your own custom field. Check it here
  • You can use filters to add directly to your tableModel. Check it out here
  • Column search fields. This makes it easy to search on a single column. Check it out here here

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Postcardware

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Quotec, Traktieweg 8c 8304 BA, Emmeloord, Netherlands.

Credits

License

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