http://bfy.tw/IJem a lot of posts, articles and video.
May 26, 2018
8
Level 5
How to make search box in Laravel or data table which filters?
I am having a table in db called vendor_details consist of fields (vendor_id, vendor_name,vendor_location,vendor_area,vendor_address, vendor_contactnumber) I displayed these details in table structure in my form
I need a search box where I can use customized search based on vendor_id , vendor_name, vendor_location and vendor-contact number. I need to display like datatable format
Filtration should be also done. How can I do this can anyone help me? Please share any video link that would help me.
Level 20
You can use datatables on an already formated table in html.
- Get your data
- Create your table properly with a foreach loop (must have thead and tbody, and other requirement asked by datatables)
- Transform the table to datatable as per the doc.
1 like
Please or to participate in this conversation.