From 0fc6d680d7568053b65f7d920664471126a3df7f Mon Sep 17 00:00:00 2001 From: Roman Zipp Date: Fri, 14 Sep 2018 10:34:30 +0200 Subject: [PATCH] Move config file & Add vendor:publish Readme quotes --- README.md | 2 +- queue-monitor.php => config/queue-monitor.php | 0 src/Providers/QueueMonitorProvider.php | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename queue-monitor.php => config/queue-monitor.php (100%) diff --git a/README.md b/README.md index 8d3d5fd5..2466705d 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Add Service Provider to your app.php configuration file: Copy configuration to config folder: ``` -$ php artisan vendor:publish --provider=romanzipp\QueueMonitor\Providers\QueueMonitorProvider +$ php artisan vendor:publish --provider="romanzipp\QueueMonitor\Providers\QueueMonitorProvider" ``` Migrate the Queue Monitoring table. The table name itself can be configured in the config file. diff --git a/queue-monitor.php b/config/queue-monitor.php similarity index 100% rename from queue-monitor.php rename to config/queue-monitor.php diff --git a/src/Providers/QueueMonitorProvider.php b/src/Providers/QueueMonitorProvider.php index 7fbbaf24..b093eb6d 100644 --- a/src/Providers/QueueMonitorProvider.php +++ b/src/Providers/QueueMonitorProvider.php @@ -20,7 +20,7 @@ class QueueMonitorProvider extends ServiceProvider public function boot() { $this->publishes([ - dirname(__DIR__) . '/../queue-monitor.php' => config_path('queue-monitor.php'), + dirname(__DIR__) . '/../config/queue-monitor.php' => config_path('queue-monitor.php'), ], 'config'); $this->loadMigrationsFrom( @@ -52,7 +52,7 @@ public function boot() public function register() { $this->mergeConfigFrom( - dirname(__DIR__) . '/../queue-monitor.php', 'queue-monitor' + dirname(__DIR__) . '/../config/queue-monitor.php', 'queue-monitor' ); } }