Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
maikealame committed May 29, 2017
2 parents 89af9b9 + d5aea86 commit 0707fb3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ Create your table with bootstrap or not, use all your logic with blade like norm
<table class="table table-striped table-bordered table-hover">
<thead>
<tr role="row">
<th>@autosort('t.id','Protocolo')</th>
<th>@autosort('t.protocol','Protocolo')</th>
<th>@autosort('t.start','Data Abertura')</th>
<th>@autosort('t.end','Data Fechamento')</th>
<th>@autosort('p.name','Portfolio')</th>
<th class="tc"><b class="fa fa-gear"></b></th>
</tr>
<tr>
<th><input type="text" class="form-control" name="t.id" value="@autowherefilter('t.id')"></th>
<th><input type="text" class="form-control" name="t.id" value="@autowherefilter('t.protocol')"></th>
<th><input type="text" class="form-control datepicker" name="t.start" value="@autowherefilter('t.start')"></th>
<th><input type="text" class="form-control datepicker" name="t.end" value="@autowherefilter('t.end')"></th>
<th>
Expand Down Expand Up @@ -278,6 +278,7 @@ class TestsController extends Controller
{
$tickets = \App\Ticket::from('ticket as t')
->select('t.id as id',
't.protocol as protocol',
't.start as start',
't.end as end',
'p.name as portfolio'
Expand All @@ -296,6 +297,7 @@ class TestsController extends Controller
{
$tickets = \App\Ticket::from('ticket as t')
->select('t.id as id',
't.protocol as protocol',
't.start as start',
't.end as end',
'p.name as portfolio'
Expand All @@ -314,6 +316,7 @@ class TestsController extends Controller
{
$tickets = \App\Ticket::from('ticket as t')
->select('t.id as id',
't.protocol as protocol',
't.start as start',
't.end as end',
'p.name as portfolio'
Expand All @@ -340,7 +343,7 @@ class TestsController extends Controller
// this overwrite param setted in config file
public function autowherepaginate(){
$tickets = \App\Ticket::autoWhere()->autoSort()->autoPaginate( 10 ); // set columns and 'asc' or 'desc'
$tickets = \App\Ticket::autoWhere()->autoSort()->autoPaginate( 10 ); // set overwrite default pagination
return view("tests.ticket",compact("tickets"));
}
Expand Down

0 comments on commit 0707fb3

Please sign in to comment.