Skip to content

Commit

Permalink
Move config and database path to follow Laravel.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Mar 8, 2019
1 parent 6edc8fd commit 3393fb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function markAsRegistered($provider)
*/
public function configPath($path = '')
{
return $this->resourcesPath('config'.($path ? DIRECTORY_SEPARATOR.$path : ''));
return $this->basePath('config'.($path ? DIRECTORY_SEPARATOR.$path : ''));
}

/**
Expand All @@ -81,7 +81,7 @@ public function configPath($path = '')
*/
public function databasePath($path = '')
{
return ($this->databasePath ?: $this->resourcesPath('database')).($path ? DIRECTORY_SEPARATOR.$path : '');
return ($this->databasePath ?: $this->basePath('database')).($path ? DIRECTORY_SEPARATOR.$path : '');
}

/**
Expand Down

0 comments on commit 3393fb5

Please sign in to comment.