GithubHelp home page GithubHelp logo

appstacktop / tablelize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from softerize/tablelize

0.0 2.0 0.0 632 KB

Customizable Laravel Eloquent html tables with pagination, search and buttons.

Home Page: https://softerize.github.io/tablelize/

License: MIT License

PHP 74.60% HTML 25.40%

tablelize's Introduction

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

tablelize's People

Contributors

oscardias avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.