middleware('auth'); $this->middleware('admin'); } public function getIndex(Request $request) { return view('admin.accounts.index', [ 'users' => User::paginate(20) ]); } public function getNew(Request $request) { // } public function getView(Request $request, $id) { // } }