I'm trying to pass a parameter of a controller to a URL of a form, this parameter is in my routes but everytime I try to pass it it gives me the Undefined Variable Error
<form action="{{url('capitulos/destroy_multiple'.$curso)}}" method="POST" id="eliminar-multiples">
{{ csrf_field() }}
<table class="table table-striped table-bordered table-hover
</table>
</form>
Route::post('destroy_multiple/{curso}','CapitulosController@destroy_multiple')->name('capitulos_destroy_multiple');
{{route('capitulos_destroy_multiple',[ 'curso' => $curso])}}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community