Download the PHP package devmi/datatables without Composer
On this page you can find all versions of the php package devmi/datatables. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devmi/datatables
More information about devmi/datatables
Files in devmi/datatables
Package datatables
Short Description Super useful package for managing your database from an admin panel.
License MIT
Informations about the package datatables
DataTable
Useful package for managing your database from an admin panel.
Installation
Step 1: Composer
From the command line, run:
Step 2: Service Provider
If you're using laravel >5.5 skip to the next step.
Open config/app.php and within the providers array:
Step 3: Controller
For this package to function properly, you must create a controller extends our base DataTableController.
e.g:
then, you must implement the abstract builder
function
Step 4: Route
Simply add resources route.
Open routes/web.php
, add:
Step 5: vendor puslish
Now you must publish the vue compenents and register it in order to use it.
open resources/assets/js/app.js
and register the component
you find the file under resources/assets/js/vendor/devmi/DataTable.vue
, you customize it.
Usage
Now you can visit www.domain.com/admin/users
'users' is you table name.
- Repeat step 3 & step 4 for your other model.
Notice
You must to install ES6 spread operator in order to use this package properly
then, create .babelrc file from you command line
Now compile your asset running
Extra
Example:
You can override the following functions and variables for your need