diff --git a/changelog.md b/changelog.md index ea70894..c5702a4 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,10 @@ All notable changes to `Laravel Block` will be documented in this file. +## 1.1.10 + +- Added ability to publish migrations and config + ## 1.1.9 - Replaced `auth()` with `$this` diff --git a/src/LaravelBlockServiceProvider.php b/src/LaravelBlockServiceProvider.php index cb2a2b8..f7f04be 100644 --- a/src/LaravelBlockServiceProvider.php +++ b/src/LaravelBlockServiceProvider.php @@ -15,6 +15,14 @@ public function boot(): void { $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); + $this->publishes([ + __DIR__.'/../database/migrations' => database_path('migrations') + ], 'migrations'); + + $this->publishes([ + __DIR__.'/../config/laravel-block.php' => config_path('laravel-block.php') + ], 'config'); + if ($this->app->runningInConsole()) { $this->bootForConsole(); }