We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07046dc commit 71250e7Copy full SHA for 71250e7
src/app/Library/CrudPanel/Traits/Buttons.php
@@ -16,10 +16,10 @@ trait Buttons
16
* @param string $stack Stack where the buttons belongs. Options: top, line, bottom.
17
* @param array $buttons Name of the buttons. ['update', 'delete', 'show']
18
*/
19
- public function reorderButtons($stack, $buttons)
+ public function reorderButtons($stack, $buttons)
20
{
21
$newBtns = collect([]);
22
-
+
23
$this->buttons()->each(function ($btn) use ($stack, $newBtns) {
24
if ($btn->stack != $stack) {
25
$newBtns->push($btn);
0 commit comments