PHPackages                             devmi/datatables - 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. [Admin Panels](/categories/admin)
4. /
5. devmi/datatables

ActiveLibrary[Admin Panels](/categories/admin)

devmi/datatables
================

Super useful package for managing your database from an admin panel.

1.1(8y ago)110MITVuePHP &gt;=7.0.0

Since Oct 1Pushed 8y ago2 watchersCompare

[ Source](https://github.com/AdamKeen/DataTables)[ Packagist](https://packagist.org/packages/devmi/datatables)[ RSS](/packages/devmi-datatables/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

DataTable
=========

[](#datatable)

Useful package for managing your database from an admin panel.

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

[](#installation)

### Step 1: Composer

[](#step-1-composer)

From the command line, run:

```
composer require devmi/datatables
```

### Step 2: Service Provider

[](#step-2-service-provider)

> If you're using laravel &gt;5.5 skip to the next step.

Open config/app.php and within the providers array:

```
Devmi\Datatables\DataTableServiceProvider::class

```

### Step 3: Controller

[](#step-3-controller)

For this package to function properly, you must create a controller extends our base DataTableController.

e.g:

```
php artisan make:controller UserController

```

then, you must implement the abstract `builder` function

```
use App\User;
use Devmi\Datatables\Controllers\DatatableController;

class UserController extends DatatableController
{
    public function builder()
    {
        return User::query();
    }

    //...
}
```

### Step 4: Route

[](#step-4-route)

Simply add resources route.

Open `routes/web.php` , add:

```
Route::resource('users', 'UserController');

```

### Step 5: vendor puslish

[](#step-5-vendor-puslish)

Now you must publish the vue compenents and register it in order to use it.

```
php artisan vendor:publish --tag=devmi

```

open `resources/assets/js/app.js` and register the component

```
Vue.component('data-table', require('./vendor/devmi/DataTable.vue'));

```

you find the file under `resources/assets/js/vendor/devmi/DataTable.vue` , **you customize it.**

Usage
-----

[](#usage)

Now you can visit `www.domain.com/admin/users`

> **'users'** is you table name.

[![Imgur](https://camo.githubusercontent.com/9fadab8f7744242c4b36e0a909852505ec10d16fbbda47cde6c23fefc796bfd1/68747470733a2f2f692e696d6775722e636f6d2f675572646232392e706e67)](https://camo.githubusercontent.com/9fadab8f7744242c4b36e0a909852505ec10d16fbbda47cde6c23fefc796bfd1/68747470733a2f2f692e696d6775722e636f6d2f675572646232392e706e67)

- Repeat **step 3** &amp; **step 4** for your other model.

### Notice

[](#notice)

You must to install ES6 spread operator in order to use this package properly

```
npm install --save-dev babel-plugin-transform-object-rest-spread

```

then, create .babelrc file from you command line

```
echo '{ "plugins": ["transform-object-rest-spread"] }' > .babelrc

```

Now compile your asset running

```
npm run dev

```

Extra
-----

[](#extra)

#### Example:

[](#example)

You can override the following functions and variables for your need

```
/**
 * Allows admin to add new record on database
 */

$allowCreation: Bool
```

```
public function getDisplayableColumns()
{
    return ['columns', 'you', 'need', 'to', 'display'];
}
```

```
public function getUpdatableColumns()
{
    return ['updateable', 'columns'];
}
```

```
public function store(Request $request)
{
    // Add validation for example
    parent::store($request);
}
```

```
public function update($id, Request $request)
{
    // Add validation for example
    parent::update($id, $request);
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~176 days

Total

2

Last Release

3019d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10816975?v=4)[Miloudi Mohamed](/maintainers/MiloudiMohamed)[@MiloudiMohamed](https://github.com/MiloudiMohamed)

---

Top Contributors

[![MiloudiMohamed](https://avatars.githubusercontent.com/u/10816975?v=4)](https://github.com/MiloudiMohamed "MiloudiMohamed (7 commits)")

---

Tags

datatableslaravellaraveldatatablevueadmin-panel

### Embed Badge

![Health badge](/badges/devmi-datatables/health.svg)

```
[![Health](https://phpackages.com/badges/devmi-datatables/health.svg)](https://phpackages.com/packages/devmi-datatables)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M341](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M179](/packages/laravel-ai)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[eliseekn/laravel-metrics

Generate easily metrics and trends data of your models for your dashboards.

1347.7k](/packages/eliseekn-laravel-metrics)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
