From d167ba220eaf690c257e6ae0139dd591d50d399d Mon Sep 17 00:00:00 2001 From: Raza Mehdi Date: Mon, 15 Aug 2016 12:22:42 +0500 Subject: [PATCH] Fix migrations & views publishing error --- src/Providers/AuthyServiceProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Providers/AuthyServiceProvider.php b/src/Providers/AuthyServiceProvider.php index 7b750c3..9ae8578 100644 --- a/src/Providers/AuthyServiceProvider.php +++ b/src/Providers/AuthyServiceProvider.php @@ -28,15 +28,15 @@ public function boot() if ( ! class_exists('UpdateUsersTable') ) { $this->publishes([ - __DIR__. '/../migrations/migration.php' => database_path('/migrations/' . + __DIR__. '/../../migrations/migration.php' => database_path('/migrations/' . str_replace(':', '', str_replace('-', '_', Carbon::now()->format("Y-m-d_H:i:s"))) . '_update_users_table.php'), ]); } // Load Authy View Files - $this->loadViewsFrom(__DIR__.'/../views', 'authy'); + $this->loadViewsFrom(__DIR__.'/../../views', 'authy'); $this->publishes([ - __DIR__.'/../views' => base_path('resources/views/vendor/authy'), + __DIR__.'/../../views' => base_path('resources/views/vendor/authy'), ]); }