Ich muss Array an Route und Controller aus Sicht übergeben.Muss Array an Route und Controller übergeben
ich den Fehler:
Missing required parameters for
[Route: actBook] [URI: bookfromindex/actBook/{id}/{array}]
.
Ich habe meine Route wie folgt definiert:
Route::get('/bookfromindex/actBook/{id}/{array}', '[email protected]')->name('actBook');
Meine Controller-Funktion wie folgt definiert ist:
public function actBook(Request $request, $id, $array){
Und ich nenne diese Route in Meine Ansicht mit:
<a href="{{ route('actBook', $room->id, $array) }}" class="btn btn-default">დაჯავშნა</a>
Wie verhindere ich diesen Fehler?
Sie Stück Code zeigen könnte? –
'Route :: get ('/ bookfromindex/actBook/{id}/{array}', 'BookController @ actBook') -> name ('actBook');' –
Controller: 'öffentliche Funktion actBook (Anfrage $ Anfrage, $ id, $ array) {' –