yeejiawei / laravel-table-generator
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Type:laravel-package
Requires
- illuminate/support: ^8.0
- yeejiawei/laravel-essential-icon: ^1.0.0
This package is auto-updated.
Last update: 2023-02-09 21:02:07 UTC
README
Installation
You can install the package via composer:
composer require yeejiawei/laravel-table-generator
Usage
$category = Category::all(); $category = Category::paginate(); return TableGenerator::create($category) ->setTableName('Categories') ->setCreatable('category.create') ->addColumn('id') ->addColumn('title') ->addCreatedAtColumns() ->addUpdatedAtColumns() ->setEnable('category.updateEnable') ->setViewable('category.show') ->setEditable('category.edit') ->setDeletable('category.destroy') ->render();
Credits
License
The MIT License (MIT). Please see License File for more information.