Add category-specific documentation view and management
- Introduce routes and controller actions for displaying and managing documentation by category. - Adjust views to incorporate category-specific information and actions. - Update services to handle category retrieval and validation. - Add localized strings for new functionality in English and Russian.
This commit is contained in:
+2
-2
@@ -35,10 +35,10 @@ final class DocumentationVersionController extends Controller
|
||||
return view('admin/projects/documentation-versions/index', $result->getData());
|
||||
}
|
||||
|
||||
public function show(int $projectId, int $id, Request $request): View
|
||||
public function show(int $projectId, int $id, Request $request, ?int $category = null): View
|
||||
{
|
||||
$user = $request->user();
|
||||
$result = $this->documentationVersionService->show($projectId, $id, $user);
|
||||
$result = $this->documentationVersionService->show($projectId, $id, $category, $user);
|
||||
if ($result->isError()) {
|
||||
$this->errors($result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user