From d3326147b6bde0f2075513e24cdb35d53af95e36 Mon Sep 17 00:00:00 2001 From: Chareice Date: Thu, 24 Mar 2016 15:54:00 +0800 Subject: [PATCH 1/2] using laravel databasePath() function to get database path --- src/Baum/Console/InstallCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Baum/Console/InstallCommand.php b/src/Baum/Console/InstallCommand.php index 8c273b7b..5c22a80b 100644 --- a/src/Baum/Console/InstallCommand.php +++ b/src/Baum/Console/InstallCommand.php @@ -108,7 +108,7 @@ protected function writeModel($name) { * @return string */ protected function getMigrationsPath() { - return $this->laravel['path.database'].'/migrations'; + return $this->laravel->databasePath().'/migrations'; } /** From 6a8fd471a10efdb18f744fe6622adea73a54af3a Mon Sep 17 00:00:00 2001 From: Chareice Date: Thu, 24 Mar 2016 16:07:11 +0800 Subject: [PATCH 2/2] using path method to get app path --- src/Baum/Console/InstallCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Baum/Console/InstallCommand.php b/src/Baum/Console/InstallCommand.php index 5c22a80b..cb244723 100644 --- a/src/Baum/Console/InstallCommand.php +++ b/src/Baum/Console/InstallCommand.php @@ -117,7 +117,7 @@ protected function getMigrationsPath() { * @return string */ protected function getModelsPath() { - return $this->laravel['path.base']; + return $this->laravel->path(); } }