diff --git a/README.md b/README.md
index f11fec1..cc9f3f0 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
-# laravel-bard
+# laravel-google-bard
A Laravel Package for Google Bard AI Chatbot
## INSTALATION
-- `composer require adityadees/laravel-bard`
-- `php artisan vendor:publish --tag=laravel-lighthouse`
-- New file `laravel-bard.php` will created under `config` folder
+- `composer require adityadees/laravel-google-bard`
+- `php artisan vendor:publish --tag=laravel-google-bard`
+- New file `laravel-google-bard.php` will created under `config` folder
- Fill the `bard_token` with your token
@@ -14,12 +14,12 @@ Visit https://bard.google.com/
Go to Developer tools or press F12
Application → Cookies → Copy the value of __Secure-1PSID cookie.
-
+
## RUN
```php
-$bard = (new LaravelBard())->get_answer('type_your_text_here');
+$bard = (new LaravelGoogleBard())->get_answer('type_your_text_here');
# to get the reply just access this array
$bard["content"];
diff --git a/composer.json b/composer.json
index 03fbde1..108df09 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,5 @@
{
- "name": "adityadees/laravel-bard",
+ "name": "adityadees/laravel-google-bard",
"description": "A Laravel Package for Google Bard AI Chatbot",
"keyword": [
"google-bard",
@@ -13,7 +13,7 @@
"license": "MIT",
"autoload": {
"psr-4": {
- "AdityaDees\\LaravelBard\\": "src/"
+ "AdityaDees\\LaravelGoogleBard\\": "src/"
}
},
"authors": [
@@ -25,7 +25,7 @@
"extra": {
"laravel": {
"providers": [
- "AdityaDees\\LaravelBard\\LaravelBardServiceProvider"
+ "AdityaDees\\LaravelGoogleBard\\LaravelGoogleBardServiceProvider"
]
}
},
diff --git a/config/laravel-bard.php b/config/laravel-google-bard.php
similarity index 95%
rename from config/laravel-bard.php
rename to config/laravel-google-bard.php
index bb438f4..8dc0a0f 100644
--- a/config/laravel-bard.php
+++ b/config/laravel-google-bard.php
@@ -3,7 +3,7 @@
return [
/*
|--------------------------------------------------------------------------
- | BARD_API
+ | BARD TOKEN
|--------------------------------------------------------------------------
|
| Using `__Secure-1PSID` inside
diff --git a/src/Exceptions/ErrorException.php b/src/Exceptions/ErrorException.php
index 9a33c2d..98423cf 100644
--- a/src/Exceptions/ErrorException.php
+++ b/src/Exceptions/ErrorException.php
@@ -2,7 +2,7 @@
declare(strict_types=1);
-namespace AdityaDees\LaravelBard\Exceptions;
+namespace AdityaDees\LaravelGoogleBard\Exceptions;
use Exception;
diff --git a/src/LaravelBardServiceProvider.php b/src/LaravelBardServiceProvider.php
deleted file mode 100644
index fa1820d..0000000
--- a/src/LaravelBardServiceProvider.php
+++ /dev/null
@@ -1,22 +0,0 @@
-publishes([
- __DIR__ . '/../config/laravel-bard.php' => config_path('laravel-bard.php'),
- ], 'laravel-bard');
- }
-
- public function register(): void
- {
- $this->mergeConfigFrom(__DIR__ . '/../config/laravel-bard.php', 'laravel-bard');
- }
-}
diff --git a/src/LaravelBard.php b/src/LaravelGoogleBard.php
similarity index 95%
rename from src/LaravelBard.php
rename to src/LaravelGoogleBard.php
index 83dd19e..179aaad 100644
--- a/src/LaravelBard.php
+++ b/src/LaravelGoogleBard.php
@@ -2,18 +2,18 @@
declare(strict_types=1);
-namespace AdityaDees\LaravelBard;
+namespace AdityaDees\LaravelGoogleBard;
-use AdityaDees\LaravelBard\Exceptions\ErrorException;
+use AdityaDees\LaravelGoogleBard\Exceptions\ErrorException;
/**
- * LaravelBard
+ * LaravelGoogleBard
*
* @author Aditya Dharmawan Saputra @adityadees
*
*/
-class LaravelBard
+class LaravelGoogleBard
{
private $proxies;
private $timeout;
@@ -29,7 +29,7 @@ public function __construct($timeout = 6, $proxies = null, $session = null)
{
$this->proxies = $proxies;
$this->timeout = $timeout;
- $this->token = config('laravel-bard.bard_token');
+ $this->token = config('laravel-google-bard.bard_token');
$headers = [
"Host: bard.google.com",
"X-Same-Domain: 1",
diff --git a/src/LaravelGoogleBardServiceProvider.php b/src/LaravelGoogleBardServiceProvider.php
new file mode 100644
index 0000000..71db095
--- /dev/null
+++ b/src/LaravelGoogleBardServiceProvider.php
@@ -0,0 +1,22 @@
+publishes([
+ __DIR__ . '/../config/laravel-google-bard.php' => config_path('laravel-google-bard.php'),
+ ], 'laravel-google-bard');
+ }
+
+ public function register(): void
+ {
+ $this->mergeConfigFrom(__DIR__ . '/../config/laravel-google-bard.php', 'laravel-google-bard');
+ }
+}