/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $title = $this->title; $module_name = $this->module_name; $module_icon = $this->module_icon; $page_heading = "All " . $module_name; ${$module_name} = Role::paginate(5); return view("backend.{$module_name}.index", compact('title', 'page_heading', 'module_icon', "module_name", "{$module_name}")); }
/** * Display a listing of the resource. * * @return Response */ public function index() { if (Auth::user()->role_id != 1) { return redirect('home'); Session::flash('flash_message', 'Nie masz do tego uprawnień'); } else { $role = Role::paginate(15); return view('role.index', compact('role')); } }
/** * Display a listing of the resource. * * @return Response */ public function index() { // $q = \Request::get('q'); if ($q != '') { $roles = \App\Role::where('name', 'RLIKE', $q)->paginate(10); } else { $roles = \App\Role::paginate(10); } return view('roles.index', compact('roles', 'q')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $roles = Role::paginate(1); return view('pages.admin_pages.roles')->with('roles', $roles); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // $roles = Role::all(); $roles = Role::paginate(env('PAGINATION_MAX')); return view('backend.roles.index', compact('roles')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $models = Role::orderBy('name', 'desc')->paginate(10); $models = Role::paginate(10); return view('admin.role.index', compact('models')); }
/** * Display a listing of the resource. * * @param RoleRequest $request * @return \Illuminate\Http\JsonResponse */ public function index(RoleRequest $request) { $roles = Role::paginate(getPerPage()); return $this->response->ok($roles); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $roles = Role::paginate(8); $permisos = Permission::all(); return View::make('template.role.role', array('roles' => $roles, 'permisos' => $permisos)); }
public function roles() { $roles = Role::paginate(10); return view('users/roles', compact('roles')); }
/** * Display a listing of the resource. * * @return void */ public function index() { $roles = Role::paginate(15); return view('admin.roles.index', compact('roles')); }