据说参数很少,但不知道是什么问题
ProjectContorller.php
public 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
茅侃侃