From b5736e89f4c10d0d855a2fcaffa84630d243fcd2 Mon Sep 17 00:00:00 2001 From: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com> Date: Thu, 6 Nov 2025 02:37:10 +0000 Subject: [PATCH] Use `--realpath` to run plugin migrations --- app/Services/Helpers/PluginService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Helpers/PluginService.php b/app/Services/Helpers/PluginService.php index 6b639f0e6..9dac1fcd7 100644 --- a/app/Services/Helpers/PluginService.php +++ b/app/Services/Helpers/PluginService.php @@ -180,7 +180,7 @@ class PluginService { $migrations = plugin_path($plugin->id, 'database', 'migrations'); if (file_exists($migrations)) { - $success = Artisan::call('migrate', ['--path' => $migrations, '--force' => true]) === 0; + $success = Artisan::call('migrate', ['--realpath' => true, '--path' => $migrations, '--force' => true]) === 0; if (!$success) { throw new Exception("Could not run migrations for plugin '{$plugin->id}'");