如果您需要在另一个控制器中使用该方法,则意味着您需要对其进行抽象并使其可重用。将该实现移到服务类(ReportingService或类似的类)中,并将其注入到控制器中。例:class ReportingService{ public function getPrintReport() { // your implementation here. }}// don't forget to import ReportingService at the top (use Path\To\Class)class SubmitPerformanceController extends Controller{ protected $reportingService; public function __construct(ReportingService $reportingService) { $this->reportingService = $reportingService; } public function reports() { // call the method $this->reportingService->getPrintReport(); // rest of the code here }}对需要该实现的其他控制器执行相同的操作。从其他控制器获取控制器方法是一种代码味道。