From 5f2410472386755d88d3d86bcd73e3f346e999b2 Mon Sep 17 00:00:00 2001 From: Philo Hermans Date: Mon, 31 Jul 2023 14:30:01 +0200 Subject: [PATCH] Add new modal directive change to auto-upgrade --- src/WireElementsModalUpgrade.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/WireElementsModalUpgrade.php b/src/WireElementsModalUpgrade.php index f337886..3b0ca7b 100644 --- a/src/WireElementsModalUpgrade.php +++ b/src/WireElementsModalUpgrade.php @@ -37,6 +37,16 @@ public function handle(UpgradeCommand $console, \Closure $next) directories: 'resources' ); + $this->interactiveReplacement( + console: $console, + title: 'The modal directive has been changed.', + before: '@livewire(\'livewire-ui-modal\')', + after: '@livewire(\'wire-elements-modal\')', + pattern: '/@livewire\([\'|"]livewire-ui-modal[\'|"]\)/', + replacement: '@livewire(\'wire-elements-modal\')', + directories: 'resources/views' + ); + return $next($console); } } \ No newline at end of file