Skip to content

Commit

Permalink
Define the package goal more clearly
Browse files Browse the repository at this point in the history
  • Loading branch information
aginev committed Aug 25, 2015
1 parent 23b3866 commit 557c9d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Datagrid For Laravel 5
Package that easily converts collection of models to a datagrid table.
Package that easily converts collection of models to a datagrid table. The main goal of the package is to build for you a table with sorting and filters per column. You are defining the grid structure in your controller, pass the datagrid to the view and show it there. This will give you a really clean views, just a single line to show the table + filters + sorting + pagination. Keep in mind that filtering and sorting the data is up to you!

## Features
- Composer installable
Expand Down Expand Up @@ -91,6 +91,7 @@ We need a table with all the users data, their roles, edit and delete links at t
<?php

// Grap all the users with their roles
// NB!!! At the next line you are responsible for data filtration and sorting!
$users = User::with('role')->paginate(25);

// Create Datagrid instance
Expand Down Expand Up @@ -170,4 +171,4 @@ php artisan vendor:publish
This will copy the view to resources/views/vendor/datagrid/datagrid.blade.php. Editing this file you will be able to modify the grid view as you like with no chance to loose your changes.

## License
MIT - http://opensource.org/licenses/MIT
MIT - http://opensource.org/licenses/MIT

0 comments on commit 557c9d2

Please sign in to comment.