我有一些搜索引擎带有一些高级搜索选项,但是当我使用高级选项时出现错误。
当我进入下一页时,我看到错误。
这是我的代码:
控制器:
$Input = Input::all();
$makethis = Input::flash();
$items = Gamefarm::where('roost_hen', '=', Input::get('sex'))
->paginate(6);
return View::make('gamefarms/index', compact('items', 'makethis'));
我的观点
@foreach(array_chunk($items->all(), 3) as $row)
<div class="row">
@foreach ($row as $item)
<div class="col-md-4">
<h2>{{ $item->bname}}</h2>
<img src="{{$item->img_loc}}">
<div>{{$item->desc}}</div>
</div>
@endforeach
</div>
@endforeach
{{ $items->appends(Request::except('page'))->links() }}
答案 0 :(得分:0)
return View::make('gamefarms/index',compact('items','makethis'))->with('items',$items);