From 2fb845fde6651b3ed9382dd82cfcde38257b3656 Mon Sep 17 00:00:00 2001 From: Jan Drda Date: Tue, 6 Dec 2016 16:11:22 +0100 Subject: [PATCH] Namespaces changed --- composer.json | 2 +- readme.md | 4 ++-- src/config/laravelGoogleCustomSearchEngine.php | 8 +++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 1143daa..4a658db 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ }, "autoload": { "psr-0": { - "JDrda\\LaravelGoogleCustomSearchEngine": "src/" + "JanDrda\\LaravelGoogleCustomSearchEngine": "src/" } }, "config": { diff --git a/readme.md b/readme.md index 8eac30a..142e289 100644 --- a/readme.md +++ b/readme.md @@ -19,14 +19,14 @@ composer require jdrda/laravel-google-custom-search-engine ```php 'providers' => [ '...', - 'JDrda\LaravelGoogleCustomeSearchEngine\LaravelGoogleCustomeSearchEngineProvider' + 'JanDrda\LaravelGoogleCustomeSearchEngine\LaravelGoogleCustomeSearchEngineProvider' ]; ``` 3. Add alias for Facade to config/app.php ```php 'aliases' => [ ... - 'GoogleCseSearch' => 'JDrda\LaravelGoogleCustomeSearchEngine\Facades\LaravelGoogleCustomeSearchEngineProvider', + 'GoogleCseSearch' => 'JanDrda\LaravelGoogleCustomeSearchEngine\Facades\LaravelGoogleCustomeSearchEngineProvider', ... ] ``` diff --git a/src/config/laravelGoogleCustomSearchEngine.php b/src/config/laravelGoogleCustomSearchEngine.php index 396c1aa..40ca3a9 100644 --- a/src/config/laravelGoogleCustomSearchEngine.php +++ b/src/config/laravelGoogleCustomSearchEngine.php @@ -6,8 +6,10 @@ * If you create your engine at https://cse.google.com/cse/ you will find the ID after you click at Settings. * Just check the URL you have like https://cse.google.com/cse/setup/basic?cx=search_engine_id * and the string after cx= is your search engine ID + * + * !! Attention !! If you change style of your Custom search engine, the ID can be changed */ - 'engineId' => '', + 'engineId' => '009135221033437726143:k204yzkg1k8', /** * For generation API key you have to go to https://console.developers.google.com, than @@ -20,7 +22,7 @@ * 7. click on the 'Create credentials' and choose 'API key' * 8. your API key is shown, so copy and paste it here * - * !! It can take some time to API key will be authorized, wait 10 mins before starting to use it + * !! Attention !! It can take some time to API key will be authorized, wait 10 mins before starting to use it */ - 'apiKey' => '' + 'apiKey' => 'AIzaSyABzXEPu8_ucfJqAvzrYgyE69hmS7Wssts' ];