コード例 #1
0
 /**
  * Display a listing of the Role.
  *
  * @return Response
  */
 public function index()
 {
     $roles = $this->roleRepository->paginate(10);
     foreach ($roles as $key => $value) {
         $roles[$key]['user'] = User::where('objectId', $value->userId)->first();
     }
     return view('roles.index')->with('roles', $roles);
 }
コード例 #2
0
 /**
  * Display a listing of the Role.
  * @return Response
  */
 public function index()
 {
     $roles = $this->roleRepository->paginate(10);
     return view('roles.index')->with('roles', $roles);
 }