Skip to content

Commit

Permalink
Use ::dispatch instead of event helper
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv committed Feb 10, 2024
1 parent 14e60d2 commit e9c7681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Stache/Redirects/RedirectRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ public function save($redirect)

StacheFacade::store('redirects')->save($redirect);

event(new RedirectSaved($redirect));
RedirectSaved::dispatch($redirect);
}

public function delete($redirect)
{
StacheFacade::store('redirects')->delete($redirect);

return true;
}

Expand Down

0 comments on commit e9c7681

Please sign in to comment.