Laravel grid package

v2.2 2020-11-05 10:26 UTC

This package is not auto-updated.

Last update: 2023-01-21 10:38:11 UTC


Build Status Scrutinizer Code Quality SensioLabsInsight StyleCI

Laravel Grid is a package that helps you display table data. I could not find package that would satisfy my needs so I decided to write one. Now I've been successfully using it in my two projects. I hope you will enjoy it.


namespace App\Http\Controllers;

use Boduch\Grid\Order;
use Boduch\Grid\Source\EloquentSource;

class UsersController extends Controller
    public function index()
        $grid = app('grid.builder')
            ->setDefaultOrder(new Order('id', 'desc'))
            ->addColumn('id', [
                'sortable' => true
            ->setSource(new EloquentSource(new \App\Models\User()));
        return view('users')->with('grid', $grid);


  • Pagination
  • Filtering
  • Sorting
  • Highly customizable
  • Simple usage
  • Different data source (Eloquent model, collection, array)



  • PHP >= 7.0
  • Laravel >= 5.2

Installation steps

  1. run composer require adam-boduch/laravel-grid
  2. open file config/app.php
  3. add Boduch\Grid\GridServiceProvider::class into providers array

Getting started

To keep your controllers clean, it's highly recommended to keep your grid classes as a separate php file.


Using twig

{{ grid | raw }}

Laravel Grid and repository pattern


Laravel Grid and presentation pattern


Table cell modification


Different column name and filter name