Skip to content

Commit 2fb845f

Browse files
committed
Namespaces changed
1 parent c0d0adf commit 2fb845f

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"autoload": {
3434
"psr-0": {
35-
"JDrda\\LaravelGoogleCustomSearchEngine": "src/"
35+
"JanDrda\\LaravelGoogleCustomSearchEngine": "src/"
3636
}
3737
},
3838
"config": {

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ composer require jdrda/laravel-google-custom-search-engine
1919
```php
2020
'providers' => [
2121
'...',
22-
'JDrda\LaravelGoogleCustomeSearchEngine\LaravelGoogleCustomeSearchEngineProvider'
22+
'JanDrda\LaravelGoogleCustomeSearchEngine\LaravelGoogleCustomeSearchEngineProvider'
2323
];
2424
```
2525
3. Add alias for Facade to config/app.php
2626
```php
2727
'aliases' => [
2828
...
29-
'GoogleCseSearch' => 'JDrda\LaravelGoogleCustomeSearchEngine\Facades\LaravelGoogleCustomeSearchEngineProvider',
29+
'GoogleCseSearch' => 'JanDrda\LaravelGoogleCustomeSearchEngine\Facades\LaravelGoogleCustomeSearchEngineProvider',
3030
...
3131
]
3232
```

src/config/laravelGoogleCustomSearchEngine.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
* If you create your engine at https://cse.google.com/cse/ you will find the ID after you click at Settings.
77
* Just check the URL you have like https://cse.google.com/cse/setup/basic?cx=search_engine_id
88
* and the string after cx= is your search engine ID
9+
*
10+
* !! Attention !! If you change style of your Custom search engine, the ID can be changed
911
*/
10-
'engineId' => '',
12+
'engineId' => '009135221033437726143:k204yzkg1k8',
1113

1214
/**
1315
* For generation API key you have to go to https://console.developers.google.com, than
@@ -20,7 +22,7 @@
2022
* 7. click on the 'Create credentials' and choose 'API key'
2123
* 8. your API key is shown, so copy and paste it here
2224
*
23-
* !! It can take some time to API key will be authorized, wait 10 mins before starting to use it
25+
* !! Attention !! It can take some time to API key will be authorized, wait 10 mins before starting to use it
2426
*/
25-
'apiKey' => ''
27+
'apiKey' => 'AIzaSyABzXEPu8_ucfJqAvzrYgyE69hmS7Wssts'
2628
];

0 commit comments

Comments
 (0)