softerize / tablelize by oscardias

Customizable Laravel Eloquent html tables with pagination, search, sorting and buttons.
1,912
12
3
Package Data
Maintainer Username: oscardias
Maintainer Contact: oscar.dias@softerize.com (Oscar Dias)
Package Create Date: 2016-09-26
Package Last Update: 2018-06-06
Home Page: https://softerize.github.io/tablelize/
Language: PHP
License: MIT
Last Refreshed: 2024-11-17 03:02:49
Package Statistics
Total Downloads: 1,912
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 12
Total Watchers: 3
Total Forks: 3
Total Open Issues: 0

Tablelize

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:

Simple example

If you want a more distinct look, you can use additional options and turn it into:

Advanced example

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/.