I have this code here which is listing all items from one user, user and item are two differents model and they have relationship with their primary keys.
@foreach($user->items as $item)
<p class="heading">
<a href=""></a>
</p>
@endforeach
My question is how to send that item_id
with post request to controller, because when I write like this for example <form class="form-horizontal" method="post" action="" role="form" enctype="multipart/form-data">
it gives me that $item variable is not defined.
Any ideas how to send that item_id
?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2fP80j6
via IFTTT
Aucun commentaire:
Enregistrer un commentaire