1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 10:14:04 +00:00

Improve comment

This commit is contained in:
lukinovec 2025-05-19 07:52:10 +02:00
parent 37306e73d3
commit 3877e7728d

View file

@ -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))