We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1258894 commit 7eae2d7Copy full SHA for 7eae2d7
src/Listeners/SlugChangedListener.php
@@ -56,7 +56,7 @@ public function handle(SlugChanged $event): void
56
->where('new_url', $newUrlPath)
57
->exists();
58
59
- if (!$redirectExists) {
+ if (! $redirectExists) {
60
$redirect = new Redirect;
61
$redirect->old_url = $oldUrlPath;
62
$redirect->new_url = $newUrlPath;
@@ -65,8 +65,7 @@ public function handle(SlugChanged $event): void
65
}
66
67
DB::commit();
68
- }
69
- catch (\Exception $e) {
+ } catch (\Exception $e) {
70
report($e);
71
DB::rollBack();
72
0 commit comments