示例#1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\View\View
  */
 public function index()
 {
     $users = $this->users->all();
     return view('backend.users.index', compact('users'));
 }
示例#2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return $this->user->all();
 }
示例#3
0
 public function index()
 {
     $users = $this->userRepository->all();
     return view('users.index', compact('users'));
 }
 /**
  * Display a listing of the User.
  * GET|HEAD /users
  *
  * @return Response
  */
 public function index()
 {
     $users = $this->userRepository->all();
     return $this->sendResponse($users->toArray(), "Users retrieved successfully");
 }