mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:44:04 +00:00
Improve comment
This commit is contained in:
parent
37306e73d3
commit
3877e7728d
1 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,8 @@ class CloneRoutesAsTenant
|
||||||
|
|
||||||
public function handle(): void
|
public function handle(): void
|
||||||
{
|
{
|
||||||
// If no routes were specified using cloneRoute(), get all routes that should be cloned
|
// If no routes were specified using cloneRoute(), get all routes
|
||||||
|
// and for each, determine if it should be cloned
|
||||||
if (! $this->routesToClone) {
|
if (! $this->routesToClone) {
|
||||||
$this->routesToClone = collect($this->router->getRoutes()->get())
|
$this->routesToClone = collect($this->router->getRoutes()->get())
|
||||||
->filter(fn (Route $route) => $this->shouldBeCloned($route))
|
->filter(fn (Route $route) => $this->shouldBeCloned($route))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue