Skip to content

Commit 92be767

Browse files
authored
fix: fix error forcing blank config
The configure option returns void, this causes the application to overwrite the users own configuration. You would only notice when you start getting errors. The `app()->getConfigurationPath()` is more appropriate as it returns a string that can be validated against the conditional on line 59.
1 parent c72279b commit 92be767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GetStream/StreamLaravel/StreamLumenServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function register()
5252
*/
5353
protected function registerResources()
5454
{
55-
$userConfigFile = app()->configure('stream-laravel.php');
55+
$userConfigFile = app()->getConfigurationPath('stream-laravel.php');
5656
$packageConfigFile = __DIR__.'/../../config/config.php';
5757
$config = $this->app['files']->getRequire($packageConfigFile);
5858

0 commit comments

Comments
 (0)