/**
  * 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)]);
 }
Exemple #2
0
 public function index()
 {
     $roles = Role::paginate(Config('constants.paginateNo'));
     return view(Config('constants.adminRoleView') . '.index', compact('roles'));
 }
Exemple #3
0
 /**
  * Display a listing of the resource.
  *
  * @return mixed
  */
 public function index()
 {
     $roles = Role::paginate(15);
     return view('admin.data-management.roles.index', compact('roles'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return view('admin.users.roles.list', ['roles' => Role::paginate(20)]);
 }
Exemple #5
0
 public function index()
 {
     $roles = Role::paginate(15);
     return view($this->view_path . __FUNCTION__, compact('roles'));
 }
 /**
  * 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));
 }
Exemple #7
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $roles = Role::paginate(config('blis.page-items'));
     return view('role.index', compact('roles'));
 }