【发布时间】:2021-07-09 22:08:48
【问题描述】:
我必须从一个控制器调用另一个控制器的函数。
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*/
}
我必须将请求实例传递给应用程序函数。但是我不想从 getquickviews 请求中传递所有参数的问题就像我在 getquickviews 函数上收到电子邮件、电话、姓名但我只需要将电话、电子邮件传递给应用程序函数。
【问题讨论】:
标签: php laravel laravel-5 laravel-5.3