From 797d79118d6e8974cc3b42bcb0136fd6039baf0f Mon Sep 17 00:00:00 2001 From: tim gavin Date: Sat, 27 Apr 2024 11:34:10 -0400 Subject: [PATCH] Add publishables --- changelog.md | 4 ++++ src/LaravelBlockServiceProvider.php | 8 ++++++++ 2 files changed, 12 insertions(+) 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(); }