Created
December 5, 2023 14:35
-
-
Save simonhamp/146dbd47be1dc9bdbf5deed67374dfac to your computer and use it in GitHub Desktop.
A trait to reroute Laravel Notifications at runtime
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Concerns\Notifications; | |
trait Reroutable | |
{ | |
protected array $routes; | |
public function routes(string ...$routes): static | |
{ | |
$this->routes = $routes; | |
return $this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment