/** * 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); }
/** * Display a listing of the Role. * @return Response */ public function index() { $roles = $this->roleRepository->paginate(10); return view('roles.index')->with('roles', $roles); }