Access Controller method from another controller in Laravel 5
You can access your controller method like this: app(‘App\Http\Controllers\PrintReportController’)->getPrintReport(); This will work, but it’s bad in terms of code organisation (remember to use the right namespace for your PrintReportController) You can extend the PrintReportController so SubmitPerformanceController will inherit that method class SubmitPerformanceController extends PrintReportController { // …. } But this will also inherit all other … Read more