Created
July 29, 2023 11:32
-
-
Save lao9s/b51ec6b4f350d76f0e22d91299997e53 to your computer and use it in GitHub Desktop.
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
$blocks = collect($this->input('blocks', []))->mapWithKeys(function ($block, $index) { | |
return [ | |
$block => ['sort_order' => $index] | |
]; | |
})->toArray(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment