Skip to content

Commit

Permalink
Namespaces changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrda committed Dec 6, 2016
1 parent c0d0adf commit 2fb845f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"autoload": {
"psr-0": {
"JDrda\\LaravelGoogleCustomSearchEngine": "src/"
"JanDrda\\LaravelGoogleCustomSearchEngine": "src/"
}
},
"config": {
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
...
]
```
Expand Down
8 changes: 5 additions & 3 deletions src/config/laravelGoogleCustomSearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
];

0 comments on commit 2fb845f

Please sign in to comment.