SyntaxFix
Write A Post
Hire A Developer
Questions
If you do not like double quotes like me, this will work for you with single quotes:
$value = Input::get('q'); $books = Book::where('name', 'LIKE', '%' . $value . '%')->limit(25)->get(); return view('pages/search/index', compact('books'));