PHPackages                             ributwiboworahayu/datatable-service - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ributwiboworahayu/datatable-service

ActiveLibrary

ributwiboworahayu/datatable-service
===================================

A service for integrating DataTables with Laravel.

v1.2.0(1y ago)023MITPHPPHP ^8.0|^8.1|^8.2

Since Oct 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ributwiboworahayu/datatable-service)[ Packagist](https://packagist.org/packages/ributwiboworahayu/datatable-service)[ RSS](/packages/ributwiboworahayu-datatable-service/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

DataTable Service for Laravel
=============================

[](#datatable-service-for-laravel)

The `datatable-service` package is designed to integrate DataTables with Laravel, making it easy to manage table data with efficient searching, sorting, and pagination.

Installation
------------

[](#installation)

### 1. Add the Package to Your Laravel Project

[](#1-add-the-package-to-your-laravel-project)

To add this package to your Laravel project, open your terminal and run the following command:

```
composer require ributwiboworahayu/datatable-service
```

### 2. Register the Service Provider

[](#2-register-the-service-provider)

Add the service provider to the `providers` array in the `config/app.php` file:

```
'providers' => [
    // ...
    DatatableService\DataTableServiceProvider::class,
],
```

Usage
-----

[](#usage)

### 1. Using `DataTableService` in a Controller

[](#1-using-datatableservice-in-a-controller)

You can use `DataTableService` in your Laravel controllers. Here is an example of how to use it:

```
