diff --git a/README.md b/README.md index 627b054..43f4256 100644 --- a/README.md +++ b/README.md @@ -54,14 +54,14 @@ Then publish and run the migrations with: > To use UUIDs see [UUIDs](#uuids) ```bash -php artisan vendor:publish --tag="banhammer-migrations" +php artisan vendor:publish --provider="Mchev\Banhammer\BanhammerServiceProvider" --tag="migrations" php artisan migrate ``` You can publish the config file with: ```bash -php artisan vendor:publish --tag="banhammer-config" +php artisan vendor:publish --provider="Mchev\Banhammer\BanhammerServiceProvider" --tag="config" ``` It is possible to define the table name, the model and the fallback_url in the `config/ban.php` file. @@ -90,7 +90,7 @@ composer update mchev/banhammer - Backup your previous configuration file located at `config/ban.php`. - Force republish the new configuration using the command: ```bash - php artisan vendor:publish --tag="banhammer-config" --force + php artisan vendor:publish --provider="Mchev\Banhammer\BanhammerServiceProvider" --tag="config" --force ``` - Review the new configuration file and make any necessary edits. @@ -346,7 +346,7 @@ php artisan banhammer:clear To use UUIDs make sure you publish and edit the migration files. ```bash -php artisan vendor:publish --tag="banhammer-migrations" +php artisan vendor:publish --provider="Mchev\Banhammer\BanhammerServiceProvider" --tag="migrations" ``` ```diff diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3e30d06..018b709 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,13 +1,10 @@ - + tests - - - diff --git a/phpunit.xml.dist.bak b/phpunit.xml.dist.bak deleted file mode 100644 index c7b5079..0000000 --- a/phpunit.xml.dist.bak +++ /dev/null @@ -1,48 +0,0 @@ - - - - - tests - - - - - ./src - - - - - - - - - - - - - - - - - - - - diff --git a/src/BanhammerServiceProvider.php b/src/BanhammerServiceProvider.php index d80b76f..c665f96 100644 --- a/src/BanhammerServiceProvider.php +++ b/src/BanhammerServiceProvider.php @@ -35,12 +35,12 @@ public function boot(): void // Publishing the config. $this->publishes([ __DIR__.'/../config/config.php' => config_path('ban.php'), - ], 'banhammer-config'); + ], 'config'); // Publishing migrations $this->publishes([ __DIR__.'/../database/migrations' => database_path('migrations'), - ], 'banhammer-migrations'); + ], 'migrations'); // Registering package commands. $this->commands([ diff --git a/tests/TestCase.php b/tests/TestCase.php index 5d3a4c8..234c8b1 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -22,12 +22,9 @@ protected function getPackageProviders($app): array ]; } - /** - * Run package database migrations. - */ - protected function setUp(): void + protected function defineDatabaseMigrations() { - parent::setUp(); + $this->loadLaravelMigrations(); $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); } }