Example #1
0
 public function index()
 {
     $roles = Role::latest('created_at')->get();
     if (Sentinel::hasAccess('admin')) {
         return view('admin.rolelist', compact('roles'));
     } else {
         return redirect('/');
     }
 }
Example #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $roles = Auth::user()->hasRole('Super Admin') ? Role::latest()->paginate(get_setting('pagination_num')) : Role::latest()->nouser(['Guest', 'Super Admin'])->paginate(get_setting('pagination_num'));
     return view('admin.roles.index', compact('roles'));
 }
Example #3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $roles = Role::latest('created_at')->paginate(10);
     return view('system.roles.index', compact('roles'));
 }
 public function index()
 {
     $roles = Role::latest('updated_at')->get();
     return view('roles.index', compact('roles'));
 }