Created
October 28, 2018 23:13
-
-
Save adamcrampton/5d448585cbd4c6dff30f88a47ddf4a5d to your computer and use it in GitHub Desktop.
Nested Collection each looping
This file contains 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
collect($locales)->each(function (string $locale) { | |
collect($fields)->each(function (Field $field) use ($locale) | |
$this->doSomeWork($locale, $field); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment