laravel 在一个控制器的方法中调用其他控制器中的方法
在a控制器中调用其他控制器b的方法
在TrialApplyController 中 写一个方法,调用 subject控制器下的方法
调用控制器下方法
public function getWaitList($request,$is_base_index = true)
{
// 调用 SubjectController@index 方法 去
$subject_c = App::make(\App\Admin\Controllers\SubjectController::class,[$this->subjectFollowUpRepository,$this->subjectRepository]);
// 调用
return $subject_c->index($request);
}
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: