From 65ff9f50b7898a382b4752403f2e03382db73a11 Mon Sep 17 00:00:00 2001 From: tim gavin Date: Sat, 27 Apr 2024 11:37:18 -0400 Subject: [PATCH] Add publishables --- changelog.md | 4 ++++ src/LaravelFollowServiceProvider.php | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/changelog.md b/changelog.md index 9ad349e..0e019e5 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,10 @@ All notable changes to `Laravel Follow` 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/LaravelFollowServiceProvider.php b/src/LaravelFollowServiceProvider.php index d2ec60b..4cc8da8 100644 --- a/src/LaravelFollowServiceProvider.php +++ b/src/LaravelFollowServiceProvider.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-follow.php' => config_path('laravel-follow.php') + ], 'config'); + if ($this->app->runningInConsole()) { $this->bootForConsole(); }