Skip to content

Commit

Permalink
Use databasePath().
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 3, 2015
1 parent a372f6e commit 19487a8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/Console/CacheTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function createBaseMigration()
{
$name = 'create_cache_table';

$path = $this->laravel['path.database'].'/migrations';
$path = $this->laravel->databasePath().'/migrations';

return $this->laravel['migration.creator']->create($name, $path);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Console/Migrations/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BaseCommand extends Command {
*/
protected function getMigrationPath()
{
return $this->laravel['path.database'].'/migrations';
return $this->laravel->databasePath().'/migrations';
}

}
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function csrf_token()
*/
function database_path($path = '')
{
return app()->make('path.database').($path ? '/'.$path : $path);
return app()->databasePath().($path ? '/'.$path : $path);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Console/FailedTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function createBaseMigration()
{
$name = 'create_failed_jobs_table';

$path = $this->laravel['path.database'].'/migrations';
$path = $this->laravel->databasePath().'/migrations';

return $this->laravel['migration.creator']->create($name, $path);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Console/TableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function createBaseMigration()
{
$name = 'create_jobs_table';

$path = $this->laravel['path.database'].'/migrations';
$path = $this->laravel->databasePath().'/migrations';

return $this->laravel['migration.creator']->create($name, $path);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Session/Console/SessionTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function createBaseMigration()
{
$name = 'create_session_table';

$path = $this->laravel['path.database'].'/migrations';
$path = $this->laravel->databasePath().'/migrations';

return $this->laravel['migration.creator']->create($name, $path);
}
Expand Down

0 comments on commit 19487a8

Please sign in to comment.