Пример #1
0
 /**
  * @Get("/")
  */
 public function getIndex()
 {
     $users = User::all();
     $roles = Role::all();
     return view('super-admin.users.index', compact('users', 'roles'));
 }
Пример #2
0
 /**
  * @Middleware("user")
  * @Get("/")
  */
 public function getRoles()
 {
     $roles = Role::all();
     return \Response::json($roles, 200);
 }