Перевод на доменную архитектуру

This commit is contained in:
brusnitsyn
2026-04-26 23:37:50 +09:00
parent 75ca01ffd8
commit f107ebd167
70 changed files with 4656 additions and 2070 deletions

View File

@@ -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');
}