From 30563133313c69f843770f4268e3270329a2e6ca Mon Sep 17 00:00:00 2001 From: glmdev Date: Sat, 9 Jul 2016 09:07:34 -0500 Subject: [PATCH] readme corrections --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc76943..b42f246 100644 --- a/README.md +++ b/README.md @@ -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.