From 51eb6483dd057bfdf67b786553605b7f21e72ae5 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 19 Jul 2014 18:04:00 +1000 Subject: [PATCH 1/3] Rename LICENCE.md to LICENCE --- LICENCE.md => LICENCE | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LICENCE.md => LICENCE (100%) diff --git a/LICENCE.md b/LICENCE similarity index 100% rename from LICENCE.md rename to LICENCE From 4907f693e70aff0e27c097944215e21791617bbb Mon Sep 17 00:00:00 2001 From: Tom Lingham Date: Tue, 22 Jul 2014 20:45:52 +1000 Subject: [PATCH 2/3] Updated readme to fix error in method chaining logic #1 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 001bfd2..c9a4e0b 100644 --- a/README.md +++ b/README.md @@ -39,12 +39,14 @@ $users = Searchy::users('name')->query('John Smith'); you can also write this as: ```php -$users = Searchy::search('users')->query('John Smith'); +$users = Searchy::search('users')->fields('name', 'email')->query('John Smith'); ``` +In this case, pass the columns you want to search through to the `fields()` method. + These example both return a Laravel DB Query Builder Object, so you will need to chain `get()` to actually return the results in a usable object: ```php -$users = Searchy::search('users')->query('John Smith')->get(); +$users = Searchy::search('users')->fields('name', 'email')->query('John Smith')->get(); ``` #### Searching multiple Columns From 7e4278bcb8b819246d3e7b87748982ab208dffab Mon Sep 17 00:00:00 2001 From: Tom Lingham Date: Wed, 23 Jul 2014 00:20:23 +1000 Subject: [PATCH 3/3] Correct facade class path in Readme #1 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c9a4e0b..174c167 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Add the service provider to the `providers` array in Laravel's app/config/app.ph Add the Alias to the `aliases` array in Laravel's app/config/app.php file: ```php -'Searchy' => 'TomLingham\Searchy\SearchBuilder' +'Searchy' => 'TomLingham\Searchy\Facades\Searchy' ```