Laravel 5 无法呈现分页

Laravel 5 unable to render pagination

我是 Laravel 5 的新手,我在显示分页时遇到问题。我查看了文档,但无法正常工作。

用户控制器:

public function getIndex()
{
    $users = User::where('active', '=','verified')->simplePaginate(10);
    return View::make('User.index')->with('users',$users);
}

index.blade.php:

<table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th>id</th>
                    <th>username</th>
                    <th>email</th>
                    <th>role</th>
                    <th>created</th>
                    <th class="actions">Actions</th>
                </tr>
                </thead>
                <tbody>
                @foreach($users as $user)
                    <tr>
                        <td>{{ $user->id }}</td>
                        <td>{{ $user->username }}</td>
                        <td>{{ $user->email }}</td>
                        <td>{{ $user->role }}</td>
                        <td>{{ $user->created_at }}</td>
                        <td class="actions">
                            blabla
                        </td>
                    </tr>

                @endforeach
                </tbody>
            </table>
{!! $users->render() !!}

出于某种原因,它正在打印额外的 /

修复:

{!! str_replace('users/','users',$users->render()) !!}