title: Laravel filter a value in all columns
body: <pre><code>public function getBooks($input)
  {
      $books= Book::where('book_name', 'LIKE', '%' . $input . '%')-&gt;get();
      return Response::json($books);
  }
  </code></pre>
  
  <p>I know how to filter a column by a given value. But how do I filter ALL columns by a given value. For example, I have a column called 'category' where user should be able to use the same search bar to filter the category.</p>
  
  <p>Something like:</p>
  
  <pre><code>$books = Book::where('all_columns', 'LIKE', '%' . $input . '%')-&gt;get();
  </code></pre>
  
  <p>Thanks!</p>