softerize / tablelize
Customizable Laravel Eloquent html tables with pagination, search, sorting and buttons.
Installs: 1 912
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 3
Forks: 3
Open Issues: 0
Requires
- php: >=5.5.0
- laravel/framework: >=5.2.0
This package is not auto-updated.
Last update: 2024-11-17 08:33:11 UTC
README
Customizable Laravel Eloquent html tables with pagination, search, sorting and buttons.
Installation
Require it directly with composer:
$ composer require softerize/tablelize
Or add it to composer.json:
{
"require": {
"softerize/tablelize": "^0.1.0"
}
}
After updating composer, add the ServiceProvider to the providers array in config/app.php
Softerize\Tablelize\TablelizeServiceProvider::class,
Simple execution
In your route/controller, do the following:
Route::get('links', function(\Illuminate\Http\Request $request){ // Create the table list using your model and the request object $tablelize = new \Softerize\Tablelize\Tablelize('\App\Models\Link', $request); return view('home.index', compact('tablelize')); });
In your view simply generate the HTML:
@extends('layouts.app') @section('content') {!! $tablelize->generate() !!} @endsection
This is what you'll get:
If you want a more distinct look, you can use additional options and turn it into:
Documentation
You'll find the complete documentation at https://softerize.github.io/tablelize/.
Support
In case you need support, please create an issue and we will check it as soon as possible.
If you want to hire a professional support, let us know at http://www.softerize.com/contact/.