【发布时间】:2016-11-29 22:16:21
【问题描述】:
我正在使用 laravel 分页。当我点击下一页或任何页码时,什么也没有发生。 控制器功能
public function getIndex()
{
$articles = Inspector::paginate(15);
return view('admin.inspector.test', compact('articles'));
}
查看文件
<table class="table table-bordered" id="mytable">
<thead>
<tr>
<th>Sr. No. </th>
<th>Email</th>
</tr>
</thead>
<tbody>
@foreach ($articles as $article)
<tr>
<td>{{ $article->id }}</td>
<td>{{ $article->email }}</td>
</tr>
@endforeach
</tbody>
</table>
{!! $articles->render() !!}
非常感谢任何帮助...谢谢...
【问题讨论】:
-
错误是什么?你试过用
{!! str_replace('/?', '?', $articles->render()) !!}
标签: php laravel pagination laravel-5.1