Skip to content

Conversation

@KamranBiglari
Copy link

This pull request includes updates to the src/LaravelExactOnline.php and src/config/laravel-exact-online.php files to enhance configuration management and storage handling. The most important changes include the addition of new configuration options and modifications to storage handling methods.

Enhancements to configuration management:

Improvements to storage handling:

/**
* The Webhook secret
*/
'exact_webhook_secret' => env('EXACT_WEBHOOK_SECRET', ''),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this config value isn't used in your code, so can you remove it?

/**
* The web url
*/
'exact_web_url' => env('EXACT_WEB_URL', ''),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this config value isn't used in your code, so can you remove it?

/**
* The storage
*/
'exact-api-storage' => env('EXACT_API_STORAGE', 'local'),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps using NULL as a default value is better here, in that way the Storage::disk method will be called with a null value, resulting in backward compatible behaviour (it will use the default configured disk)

In that way it will not break existing applications that do not use the local disk as their default filesystem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants