{"id":20204997,"url":"https://github.com/yazan-alnugnugh/vue-datatable","last_synced_at":"2025-04-10T12:13:01.858Z","repository":{"id":44947466,"uuid":"409379212","full_name":"yazan-alnugnugh/vue-datatable","owner":"yazan-alnugnugh","description":"this package help to easy create data-table","archived":false,"fork":false,"pushed_at":"2023-10-19T11:51:46.000Z","size":133,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T07:39:36.836Z","etag":null,"topics":["datatables","datatables-ajax","datatables-serverside","javascript","laravel","php","vue-datatable","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yazan-alnugnugh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-22T22:56:30.000Z","updated_at":"2024-02-25T17:34:13.000Z","dependencies_parsed_at":"2022-09-06T12:41:33.222Z","dependency_job_id":"6ee24cf1-20ea-453f-9590-748b18d17429","html_url":"https://github.com/yazan-alnugnugh/vue-datatable","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":"0.032258064516129004","last_synced_commit":"f8980c18dc8089c2fc128dd79cf7ebd19134d65c"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazan-alnugnugh%2Fvue-datatable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazan-alnugnugh%2Fvue-datatable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazan-alnugnugh%2Fvue-datatable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yazan-alnugnugh%2Fvue-datatable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yazan-alnugnugh","download_url":"https://codeload.github.com/yazan-alnugnugh/vue-datatable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217081,"owners_count":21066633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datatables","datatables-ajax","datatables-serverside","javascript","laravel","php","vue-datatable","vuejs"],"created_at":"2024-11-14T05:16:08.036Z","updated_at":"2025-04-10T12:13:01.841Z","avatar_url":"https://github.com/yazan-alnugnugh.png","language":"Vue","funding_links":["https://www.patreon.com/yazan_alnughnugh"],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003eSupporting Laravel-vue-datatable\u003c/h2\u003e\n\n- [Become sponsor on Patreon](https://www.patreon.com/yazan_alnughnugh).\n- [One-time donation via crypto-currencies](https://github.com/yazan-alnugnugh/laravel-datatable/blob/master/_docs/Donations/crypto/index.md).\n\n\n# Introduction\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"art/intro-image.png\" alt=\"laravel-vue-datatable intro image\"\u003e\n\u003c/p\u003e\n\n**if you want to create DataTable easy and quickly with crazy features, this package is for you.**\n\nThese two Laravel packages are for making easy and quickly DataTable for your work with several features like:\n- Searching \n- Sorting\n- Adding New Relations\n- Support for astrotomic/laravel-translatable Package: Seamlessly integrate with the astrotomic/laravel-translatable package for - multilingual support.\n- Multiple Selections\n- Delete/Delete All\n- Restructuring Data\n- Permission Access\n- Response Notifications for Events\n- Pagination\n\nThe goal is to create Datatable in easy way using ajax,\n with interesting features, just with little steps, you can create it\n\n## Official Documentation\n\n Documentation for Laravel Vue Datatable can be found here  [here](https://packages.tourismcaravan.com/docs/2/data-table)\n\n## Demo\n\n [DataTable Demo](https://packages.tourismcaravan.com/data-table)\n\n\n\n## Quick Example\n\n### **Start create Grid Class**\n\n```php\n// app/DataGrid/PostGrid.php\n\nnamespace App\\\\DataGrid;\n\nuse Yazan\\DataTable\\Mysql\\Eloquent\\Eloquent;\n\nclass PostGrid\n{\n\tuse Eloquent;\n\n    public $model = \"App\\\\Models\\\\Post\";\n\n}\n\n```\n\n### **Make an instance from PostGrid class and return the collection**\n\n```php\n// app/Http/Controller/PostController.php\n\npublic function all(Request $request)\n{\n  $posts = (new PostGrid())-\u003erender();\n\n  return ['success' =\u003e true, 'collection' =\u003e $posts];\n\n}\n\n```\n\n### **use the data-table component in your blade**\n\n```html\n// resources/posts/index.blade.php\n   \u003cdata-table\n       :config=\"{\n       url: `/posts/all?page=1`,\n           },\n       }\":columns=\"[\n       {\n       label: 'ID',\n       column: 'id',\n       show: true,\n           sort:{\n             sortable: false,\n             sortColumn: 'id',\n           },\n      },\n       {\n       label: 'Title',\n       column: 'title',\n        show: true,\n           sort:{\n            sortable: true,\n            sortColumn: 'title',\n            sortDir: 'asc',\n           },\n      },\n      {\n       label: 'CreatedAt',\n       column: 'created_at',\n       show: true,\n            sort:{\n               sortable: true,\n               sortColumn: 'created_at',\n               sortDir: 'asc',\n            },\n      },\n      {\n       label: 'UpdatedAt',\n       column: 'updated_at',\n       show: true,\n            sort:{\n               sortable: true,\n               sortColumn: 'updated_at',\n               sortDir: 'asc',\n            },\n      },\n       ]\n       \"\u003e\u003c/data-table\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyazan-alnugnugh%2Fvue-datatable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyazan-alnugnugh%2Fvue-datatable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyazan-alnugnugh%2Fvue-datatable/lists"}