Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Avoid manual path construction (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
amikishiyev authored Oct 5, 2020
1 parent 6afdb7a commit 6c45257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/MigrateMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ protected function writeMigration($name, $table = null, $create = null)
{
// Needed for Laravel 6 and 7 support. Laravel 8 handles creating folder automatically
// @codeCoverageIgnoreStart
if (! file_exists(database_path() . DIRECTORY_SEPARATOR . 'content-migrations')) {
mkdir(database_path() . DIRECTORY_SEPARATOR . 'content-migrations');
if (! file_exists(database_path('content-migrations'))) {
mkdir(database_path('content-migrations'), 0755);
}
// @codeCoverageIgnoreEnd

Expand Down

0 comments on commit 6c45257

Please sign in to comment.