Support the ongoing development of Laravel.io →
posted 6 years ago
Blade Forms

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');

Last updated 2 years ago.
0

{{route('capitulos_destroy_multiple',[ 'curso' => $curso])}}"

0
{{route('capitulos_destroy_multiple',[ 'curso' => $curso])}}

spanish dictionary

Last updated 6 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Anais Padilla anaiqn Joined 20 Mar 2019

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.