我创建了一个模型名称Contest.php并创建了一个函数createContest用于将数据插入数据库(在竞赛表中):insert($request);}}我在ContestController.php中有一个函数store:publicfunctionstore(Request$request){$this->createContest($request);}如何从Controller调用模型的createContest函数。我实际上想在我的模型中定义我所有的数据库查询,并且可以在我的Controller中调用它们,我对这个流程不太了解,有人可以帮助我理解流程