Skip to content

Commit

Permalink
fixing error in migration name generation on migration make command
Browse files Browse the repository at this point in the history
  • Loading branch information
lemyskaman committed Jan 3, 2023
1 parent f5dcbf8 commit e899a6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/BlameFieldsMigrationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function handle(): int
return self::FAILURE;
}

$migration_name = config('private_blame..migration_name_prefix').$this->argument('table').config('private_blame..migration_name_suffix');
$migration_name = config('blame.migration_name_prefix').$this->argument('table').config('blame.migration_name_suffix');

$this->writeMigration($migration_name, $this->argument('table'));

Expand Down
2 changes: 1 addition & 1 deletion src/LaravelBlameServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function configurePackage(Package $package): void
if (! config()->has('auth.providers.users.model')) {
throw new \Exception($package->name.' package needs an eloquent model to handle users from your persistent storage, you might set this as the users.model value at providers section the of auth config files in your laravel project');
}

$this->mergeConfigFrom(__DIR__.'/../config/private_blame.php', 'blame');
$this->registerBlameMigrationCreator();
$this->registerBlameMigrationCommandSingleton();
$package
Expand Down

0 comments on commit e899a6e

Please sign in to comment.