yeejiawei/laravel-table-generator

This package is abandoned and no longer maintained. No replacement package was suggested.

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Blade

Type:laravel-package

1.0.3 2021-09-09 18:07 UTC

This package is auto-updated.

Last update: 2023-02-09 21:02:07 UTC


README

Latest Version on Packagist Latest Version on Packagist Total Downloads Github.com Stars

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.