Skip to content

Commit

Permalink
Merge pull request #27 from NightfallSD/master
Browse files Browse the repository at this point in the history
Path to generated migrations and seeds modified
  • Loading branch information
JeffreyWay committed Aug 19, 2015
2 parents b4c1a16 + 862d428 commit eb58b86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Commands/MigrationMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected function makeDirectory($path)
*/
protected function getPath($name)
{
return './database/migrations/' . date('Y_m_d_His') . '_' . $name . '.php';
return base_path() . '/database/migrations/' . date('Y_m_d_His') . '_' . $name . '.php';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/PivotMigrationMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function getStub()
*/
protected function getPath($name = null)
{
return './database/migrations/' . date('Y_m_d_His') .
return base_path() . '/database/migrations/' . date('Y_m_d_His') .
'_create_' . $this->getPivotTableName() . '_pivot_table.php';
}

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/SeedMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ protected function getStub()
*/
protected function getPath($name)
{
return './database/seeds/' . str_replace('\\', '/', $name) . '.php';
return base_path() . '/database/seeds/' . str_replace('\\', '/', $name) . '.php';
}
}

0 comments on commit eb58b86

Please sign in to comment.