本文整理汇总了PHP中app\models\Role::paginate方法的典型用法代码示例。如果您正苦于以下问题:PHP Role::paginate方法的具体用法?PHP Role::paginate怎么用?PHP Role::paginate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\models\Role
的用法示例。
在下文中一共展示了Role::paginate方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$this->authorize('index', new \App\Models\Role());
return view('roles.index', ['roles' => \App\Models\Role::paginate(15)]);
}
示例2: index
public function index()
{
$roles = Role::paginate(Config('constants.paginateNo'));
return view(Config('constants.adminRoleView') . '.index', compact('roles'));
}
示例3: index
/**
* Display a listing of the resource.
*
* @return mixed
*/
public function index()
{
$roles = Role::paginate(15);
return view('admin.data-management.roles.index', compact('roles'));
}
示例4: index
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('admin.users.roles.list', ['roles' => Role::paginate(20)]);
}
示例5: index
public function index()
{
$roles = Role::paginate(15);
return view($this->view_path . __FUNCTION__, compact('roles'));
}
示例6: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
$list = Role::paginate($this->config['page_size']);
$title = '角色管理';
return view('admin.roleList', array('title' => $title, 'list' => $list));
}
示例7: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
$roles = Role::paginate(config('blis.page-items'));
return view('role.index', compact('roles'));
}