nicolaslopezj/searchable — pull request #7 by billmn (2014-10-22 09:26:07+00:00)
Title: Make joins although search is empty

Using a join like in your example: https://github.com/nicolaslopezj/searchable#usage

You can have an error trying to order by a related table field if the search is empty.

```php
$terms = Input::get('search');
$results = User::search($terms)->orderBy('posts.title');

// If $terms is empty => ERROR
```