Перевод на доменную архитектуру
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers\Web;
|
||||
|
||||
use App\Application\Reports\ReportSavePathService;
|
||||
use App\Exports\ReportPageExport;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Resources\Mis\FormattedPatientResource;
|
||||
@@ -20,7 +21,8 @@ class ReportController extends Controller
|
||||
public function __construct(
|
||||
protected ReportPageService $reportPageService,
|
||||
protected ReportService $reportService,
|
||||
protected DateRangeService $dateRangeService
|
||||
protected DateRangeService $dateRangeService,
|
||||
protected ReportSavePathService $reportSavePathService,
|
||||
) {}
|
||||
|
||||
public function index(Request $request)
|
||||
@@ -46,7 +48,7 @@ class ReportController extends Controller
|
||||
'status' => 'nullable|in:draft,submitted',
|
||||
]);
|
||||
|
||||
$this->reportService->storeReport($validated, Auth::user(), false);
|
||||
$this->reportSavePathService->saveManual(Auth::user(), $validated);
|
||||
|
||||
return redirect()->route('start');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user