Skip to content

Commit

Permalink
Fixing the config key
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Mar 12, 2020
1 parent 18e3dcd commit 7e4199d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Providers/Concerns/HasConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ protected function getConfigFolder(): string
*/
protected function getConfigKey(bool $withVendor = false, string $separator = '.'): string
{
$key = $withVendor
? $this->getVendorName().' '.$this->getPackageName()
: $this->getPackageName();
$package = Str::slug($this->getPackageName());

return Str::slug($key, $separator);
return $withVendor
? Str::slug($this->getVendorName()).$separator.$package
: $package;
}

/**
Expand Down

0 comments on commit 7e4199d

Please sign in to comment.