From da12be61c52d64362d8625e8f1069a98e61ba9c7 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Thu, 13 Oct 2022 21:50:58 +0300 Subject: [PATCH] `file_get_contents(...)`: Failed to open stream: No such file or directory --- src/Processors/Upgrade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Processors/Upgrade.php b/src/Processors/Upgrade.php index d388514c..b020c377 100644 --- a/src/Processors/Upgrade.php +++ b/src/Processors/Upgrade.php @@ -64,12 +64,12 @@ protected function clean(): void protected function open(string $filename): string { - return file_get_contents($this->oldPath($filename)); + return file_get_contents($this->oldPath($filename . '.php')); } protected function store(string $filename, string $content): void { - File::store($this->newPath($filename), $content); + File::store($this->newPath($filename . '.php'), $content); } protected function replaceNamespace(string $content): string @@ -145,9 +145,9 @@ protected function callMigration(): void : __DIR__ . '/../../database/migrations/named/2022_08_18_180137_change_migration_actions_table.php'; $this->artisan('migrate', [ - '--path' => $path, + '--path' => $path, '--realpath' => true, - '--force' => true, + '--force' => true, ]); }); }