我必须从一个控制器调用另一个控制器的函数。
public function getquickviews(Request $request){
$report = new ReportController();
$report ->Applications($request->except('cl_e_start_date'));//it's not working its giving me error that it expect and instance of Request and passed array()
}
public function Applications(Request $request)
{
/*APP USAGE*/
}
Run Code Online (Sandbox Code Playgroud)
我必须将请求的实例传递给应用程序函数。但问题是我不想从 getquickviews 请求传递所有参数,就像我在 getquickviews 函数上收到电子邮件、电话、姓名一样,但我只需要将电话、电子邮件传递给应用程序函数。