Fix: Убраны shallow routes для групп. Теперь все маршруты используют organization
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
0f3bfc087d
commit
052ac71e9d
|
|
@ -15,7 +15,7 @@
|
|||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||
<h1 class="h2">Редактировать группу</h1>
|
||||
<a href="{{ route('admin.organizations.show', $organization) }}" class="btn btn-secondary btn-sm">
|
||||
<i class="bi bi-arrow-left"></i> Назад
|
||||
<i class="bi bi-arrow-left"></i> Назад к организации
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
</div>
|
||||
@endif
|
||||
|
||||
<form action="{{ route('admin.groups.update', $group) }}" method="POST">
|
||||
<form action="{{ route('admin.organizations.groups.update', [$organization, $group]) }}" method="POST">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
<div class="row">
|
||||
|
|
|
|||
|
|
@ -35,6 +35,6 @@ Route::middleware('auth')->group(function () {
|
|||
// Администрирование
|
||||
Route::prefix('admin')->name('admin.')->group(function () {
|
||||
Route::resource('organizations', OrganizationController::class);
|
||||
Route::resource('organizations.groups', GroupController::class)->shallow();
|
||||
Route::resource('organizations.groups', GroupController::class);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue