Skip to content

Commit

Permalink
[fix] Config merge added. With this update you dont need to publish c…
Browse files Browse the repository at this point in the history
…onfig file
  • Loading branch information
yedincisenol committed Mar 29, 2020
1 parent 85f7332 commit e10a423
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Laravel/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public function boot()
*/
public function register()
{
$this->mergeConfigFrom(
__DIR__ . '/../config/parasut.php', 'parasut'
);

$this->app->singleton(Parasut::class, function ($app) {
return new Client(
array_get($app['config'], 'parasut.connection.client_id'),
Expand Down

0 comments on commit e10a423

Please sign in to comment.