/** * Display a listing of the resource. * * @return \Illuminate\View\View */ public function index() { $users = $this->users->all(); return view('backend.users.index', compact('users')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return $this->user->all(); }
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"); }