Skip to content

Commit

Permalink
Add new modal directive change to auto-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
PhiloNL committed Jul 31, 2023
1 parent 4cfdcc5 commit 5f24104
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/WireElementsModalUpgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 5f24104

Please sign in to comment.