vendredi 6 janvier 2017

get id from url and passing into form in laravel 5

i defined a route as

Route::get('roundtables/{name}/tags/store',['as'=>'tags.store','uses'=>'TagController@store','middleware'=>['owner','auth']]);

In my view, i have a form in this url

http://localhost:8000/roundtables/1/tags

<div class="col-md-3">
        <div class="well">
            {!! Form::open(['route'=>'tags.store','method'=>'GET']) !!}
            <h2>New Tags</h2>
            
            

            
        </div>

    </div>

My problem is, how to get the id from url which is id '1' and passing into the form when user clicked submit.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2iXkzvz
via IFTTT

Aucun commentaire:

Enregistrer un commentaire