- Notifications
You must be signed in to change notification settings - Fork5
Laravel and Vue packages to create Data Table
License
NotificationsYou must be signed in to change notification settings
yazan-alnugnugh/laravel-datatable
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
if you want to create DataTable easy and quickly with crazy features, this package is for you.
These two Laravel packages are for making easy and quickly DataTable for your work with several features like:
- Searching
- Sorting
- Adding New Relations
- Support for astrotomic/laravel-translatable Package: Seamlessly integrate with the astrotomic/laravel-translatable package for - multilingual support.
- Multiple Selections
- Delete/Delete All
- Restructuring Data
- Permission Access
- Response Notifications for Events
- Pagination
The goal is to create Datatable in easy way using ajax,with interesting features, just with little steps, you can create it
Documentation for Laravel Vue Datatable can be found herehere
// app/DataGrid/PostGrid.phpnamespaceApp\\DataGrid;useYazan\DataTable\Mysql\Eloquent\Eloquent;class PostGrid{use Eloquent;public$model ="App\\Models\\Post";}
// app/Http/Controller/PostController.phppublicfunctionall(Request$request){$posts = (newPostGrid())->render();return ['success' =>true,'collection' =>$posts];}
// resources/posts/index.blade.php<data-table:config="{ url: `/posts/all?page=1`, }, }":columns="[ { label: 'ID', column: 'id', show: true, sort:{ sortable: false, sortColumn: 'id', }, }, { label: 'Title', column: 'title', show: true, sort:{ sortable: true, sortColumn: 'title', sortDir: 'asc', }, }, { label: 'CreatedAt', column: 'created_at', show: true, sort:{ sortable: true, sortColumn: 'created_at', sortDir: 'asc', }, }, { label: 'UpdatedAt', column: 'updated_at', show: true, sort:{ sortable: true, sortColumn: 'updated_at', sortDir: 'asc', }, }, ]"></data-table>
About
Laravel and Vue packages to create Data Table
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
