据说参数很少,但不知道是什么问题ProjectContorller.phppublic function index(Request $request){ $cats = Category::all(); $users = User::all(); $view = Project::where('status', '!=', 'Complete')->get(); return view('project.index', compact('view', 'cats', 'users'));} public function store(Request $request){ $project = new Project; $project->fill($request->all())->save(); return ProjectController::index();}错误信息是这样的Too few arguments to function app\Http\Controllers\ProjectController::index(), 0 passed in
- 1 回答
- 0 关注
- 147 浏览
添加回答
举报
0/150
提交
取消