/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $users = User::paginate(10); return view('users.index')->with('users', $users)->with('auth_user', $this->auth_user); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $users = User::paginate(10); // ::with('user') return view('users.index')->with('users', $users)->with('user', $this->user); }