readme corrections

master
glmdev 8 years ago
parent ff61692809
commit 3056313331

@ -17,7 +17,7 @@ Element\Search\SearchServiceProvider::class,
## Use
Making your models searchable is easy. The models simply need to implement the ```php Element\Search\SearchableContract ```
Making your models searchable is easy. The models simply need to implement the `Element\Search\SearchableContract`
interface. Then, add the `getSearchable()` method to the model. This method should return an array of the names
of the Model's fields that the search engine can search. These fields should hold string/text data only.
@ -71,5 +71,5 @@ any string you wish to search for. Additionally, you don't have to worry about r
or capital letters from your search string, the function does it automatically.
The search function, whether in the model, or called from the facade, returns the models in the form
of a \Laravel\Database\Eloquent\Collection` collection. This allows you to perform all the usual
of a `\Laravel\Database\Eloquent\Collection` collection. This allows you to perform all the usual
functions you would be able to perform on a database query.

Loading…
Cancel
Save