From 7ddb67deefcc6c130dffbbc329a4815ac9c6c90a Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Wed, 31 May 2023 15:50:27 +0100 Subject: [PATCH] prevent route:cache on build (#225) --- src/BuildProcess/ExecuteBuildCommands.php | 1 + tests/ExecuteBuildCommandsTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/BuildProcess/ExecuteBuildCommands.php b/src/BuildProcess/ExecuteBuildCommands.php index 61acf85a..6bd08408 100644 --- a/src/BuildProcess/ExecuteBuildCommands.php +++ b/src/BuildProcess/ExecuteBuildCommands.php @@ -17,6 +17,7 @@ class ExecuteBuildCommands protected $unsupportedCommands = [ 'clear-compiled', 'optimize:clear', + 'route:cache', ]; /** diff --git a/tests/ExecuteBuildCommandsTest.php b/tests/ExecuteBuildCommandsTest.php index 8419d4ee..2154503b 100644 --- a/tests/ExecuteBuildCommandsTest.php +++ b/tests/ExecuteBuildCommandsTest.php @@ -36,6 +36,7 @@ public function test_unsupported_commands_are_removed() 'a optimize:clear', 'php artisan optimize', 'php artisan optimize:clear', + 'php artisan route:cache', ], ], ],