Handle components route names

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-08-01 16:10:39 -07:00
parent 53ff28d2b0
commit 5e488bd81f
3 changed files with 6 additions and 6 deletions

View file

@ -17,7 +17,7 @@
<div class="row">
<!-- left column -->
<div class="col-md-7">
<form class="form-horizontal" method="post" action="{{ route('component.checkin.save', $component_assets->id) }}" autocomplete="off">
<form class="form-horizontal" method="post" action="{{ route('components.checkin.store', $component_assets->id) }}" autocomplete="off">
{{csrf_field()}}
<div class="box box-default">

View file

@ -29,7 +29,7 @@
@else
@can('checkout', $component)
<li role="menuitem">
<a href="{{ route('checkout/component', $component->id) }}">
<a href="{{ route('component.checkout.show', $component->id) }}">
{{ trans('admin/components/general.checkout') }}
</a>
</li>

View file

@ -8,22 +8,22 @@ Route::group(['prefix' => 'components', 'middleware' => ['auth']], function () {
Route::get(
'{componentID}/checkout',
[Components\ComponentCheckoutController::class, 'create']
)->name('checkout/component');
)->name('component.checkout.show');
Route::post(
'{componentID}/checkout',
[Components\ComponentCheckoutController::class, 'store']
)->name('checkout/component');
)->name('component.checkout.store');
Route::get(
'{componentID}/checkin/{backto?}',
[Components\ComponentCheckinController::class, 'create']
)->name('checkin/component');
)->name('component.checkin.show');
Route::post(
'{componentID}/checkin/{backto?}',
[Components\ComponentCheckinController::class, 'store']
)->name('component.checkin.save');
)->name('components.checkin.store');
});