I have a search box in my views and I want to search foods from the database. My view for seach box is:
<div class="field" id="searchform">
<input type="text" id="searchterm" placeholder="e.g mutton
karahi,pizza..." />
<button type="button" id="search"
onclick="window.location='http://localhost:8000/search'">Find Food!</button>
</div>
My food table has fields like:
- Food_id
- FoodName
- FoodDescription
- FoodImage
- Price
Now I want to search my foods By name.How I can do that?plz help me.I am new to laravel and I am using laravel 5.2.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire