Skip to content

Commit

Permalink
move migrations folder outside of the src folder to prevent autoloading
Browse files Browse the repository at this point in the history
  • Loading branch information
mszulik committed Aug 4, 2021
1 parent 199dae4 commit 2838605
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProtectorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function publishMigrations()
$timestamp = date('Y_m_d_His', time());
$migrationName = 'add_public_key_to_users_table.php';

$stub = sprintf('%s/Migrations/%s', __DIR__, $migrationName);
$stub = sprintf('%s/../Migrations/%s', __DIR__, $migrationName);
$target = $this->app->databasePath(sprintf('migrations/%s_%s', $timestamp, $migrationName));

$this->publishes([$stub => $target], 'protector.migrations');
Expand Down

0 comments on commit 2838605

Please sign in to comment.