Skip to content

Commit 74e6d90

Browse files
committed
v1.2.1
1 parent 825918d commit 74e6d90

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## November 10, 2024 - v1.2.1
4+
- removing the requirement to publish config file
5+
36
## August 26, 2024 - v1.2.0 update
47
- Generate Keywords/Tags & Summarize methods aquired optional `context` that allows to pass additional processing instructions for the provided `content`
58
- API usage optimized internally, switched to AI job dispatch/result endpoint pairing mode

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ If you don't use Laravel then you can find
2626

2727
## Installation
2828

29-
1. You can install the package via `composer`:
29+
Follow these steps to install and set up the SharpAPI Laravel Client package.
30+
31+
1. Install the package via `composer`:
3032

3133
```bash
3234
composer require sharpapi/sharpapi-laravel-client
33-
php artisan vendor:publish --tag=sharpapi-laravel-client
3435
```
3536

3637
2. Register at [SharpAPI.com](https://sharpapi.com/) and get the API key.
@@ -41,7 +42,13 @@ php artisan vendor:publish --tag=sharpapi-laravel-client
4142
SHARP_API_KEY=key
4243
```
4344

44-
**That's it!**
45+
4. **[OPTIONAL]** Publish the configuration file `sharpapi-client.php`.
46+
47+
> **Note:** You no longer need to publish the configuration file to use this package. By default, the package will use sensible default values. You only need to publish the configuration if you wish to customize it.
48+
49+
```bash
50+
php artisan vendor:publish --tag=sharpapi-laravel-client
51+
```
4552

4653
---
4754

src/SharpApiServiceProvider.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ public function boot(): void
2525
*/
2626
public function register(): void
2727
{
28-
// Automatically apply the package configuration
29-
$this->mergeConfigFrom(__DIR__.'/../config/sharpapi-client.php', 'sharpapi-laravel-client');
28+
// Merge the package configuration with the app configuration.
29+
$this->mergeConfigFrom(
30+
__DIR__.'/../config/sharpapi-client.php', 'sharpapi-client'
31+
);
3032

3133
// Register the main class to use with the facade
3234
$this->app->singleton('sharpapi-laravel-client', function () {

0 commit comments

Comments
 (0)