public function getSearch() {
//set $keyword equal to form input on main.blade.php
//keyword is id from form
$keyword = Input::get('keyword');
return View::make('store.search')
->with('products', Product::where('title', 'LIKE', '%'.$keyword.'%')->get())
->with('keyword', $keyword);
}
Yes,swg19, that is the core of the search, but my question is a little broader. For example, I am looking at data grid: http://www.datatables.net/
Is this what everyone is using in Laravel 4 for their data tables ui?
We use phpGrid (http://phpgrid.com) for pretty much everything we develop for both Laravel 4 and 5. It has built-in, advanced and global search and it's pretty easy to get it running.
I recommend you start with their online tutorials
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community