From 9ef48cad1972998ea752284f117e2ca76da37c29 Mon Sep 17 00:00:00 2001 From: Bruno Date: Wed, 3 Feb 2021 14:26:07 -0300 Subject: [PATCH] Patch policy files: don't overwrite #5 --- Modelarium/Laravel/Targets/PolicyGenerator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modelarium/Laravel/Targets/PolicyGenerator.php b/Modelarium/Laravel/Targets/PolicyGenerator.php index 6f036c4..8456902 100644 --- a/Modelarium/Laravel/Targets/PolicyGenerator.php +++ b/Modelarium/Laravel/Targets/PolicyGenerator.php @@ -66,7 +66,8 @@ public function generate(): GeneratedCollection new GeneratedItem( GeneratedItem::TYPE_POLICY, "printNamespace($namespace), - $this->getGenerateFilename($name) + $this->getGenerateFilename($name), + true ) ); }