From e899a6eaeb7c64be3854ad33b026f93e0aba0d80 Mon Sep 17 00:00:00 2001 From: lemys lopez Date: Tue, 3 Jan 2023 13:04:38 -0400 Subject: [PATCH] fixing error in migration name generation on migration make command --- src/Commands/BlameFieldsMigrationCommand.php | 2 +- src/LaravelBlameServiceProvider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/BlameFieldsMigrationCommand.php b/src/Commands/BlameFieldsMigrationCommand.php index d4ecd3e..50a8688 100644 --- a/src/Commands/BlameFieldsMigrationCommand.php +++ b/src/Commands/BlameFieldsMigrationCommand.php @@ -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')); diff --git a/src/LaravelBlameServiceProvider.php b/src/LaravelBlameServiceProvider.php index 5367a9c..12cfefb 100644 --- a/src/LaravelBlameServiceProvider.php +++ b/src/LaravelBlameServiceProvider.php @@ -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